Drupal 7 中模块的内存使用测量

发布于 2024-12-17 07:18:12 字数 452 浏览 1 评论 0原文

我使用共享主机,他们不允许我的网站使用超过 32MB 的内存。 当我添加 10-15 个模块时,Drupal 7 给出致命错误,内存耗尽。 所以我寻找最消耗内存的模块。

我发现这是针对 Drupal 早期版本的。

http://2bits.com/articles/measuring -内存消耗-by-drupal-bootstrap-and-modules.html

您能给我推荐一个工具/代码等来测量模块的内存使用情况吗? 我安装了 devel,但找不到如何测量它。

谢谢

编辑:我的意思是“内存限制”。错误消息是“致命错误:PHP 允许的内存大小已耗尽(尝试分配...字节)在...”。

I use shared hosting, they didn't allow more than 32MB memory for my site.
When i add 10-15 modules Drupal 7 gives fatal error, memory was exhausted.
So i look for the modules that spends memory most.

I found this which is for earlier versions of Drupal.

http://2bits.com/articles/measuring-memory-consumption-by-drupal-bootstrap-and-modules.html

Can you recommend me a tool/code etc. to measure the memory usage of modules?
I installed devel, but couldn't find how to measure it.

Thank you

edit: I mean "memory_limit". Error message is "Fatal Error: PHP Allowed Memory Size Exhausted (tried to allocate … bytes) in ...".

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

狠疯拽 2024-12-24 07:18:12

这已被制作成一个单独的模块。它还拥有 Drupal 7 端口。检查http://drupal.org/project/performance

This has been made into a separate module. Its also got a Drupal 7 port. Check http://drupal.org/project/performance.

生生漫 2024-12-24 07:18:12

我遇到了类似的问题,根据我的 Google 搜索,清除“accesslog”表有所帮助,因为它有大约 4L 行,并且在加载过程中,drupal 尝试索引这些记录。有人说完全禁用它。然而,我决定删除这些记录,因为它们对我来说并不那么重要。

I had a similar issue and based on my Google search, clearing the 'accesslog' table helped, as it had around 4L rows and during the loading, drupal tries to index those records. Somebody says to disable it totally. However, I decided to wipe off the records as they are not that significant to me.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文