Drupal - 用户管理 - 内存不足错误 [英] Drupal - User Management - Out of Memory error

查看:81
本文介绍了Drupal - 用户管理 - 内存不足错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我们拥有Drupal 5设置的项目上进行工作。目前在数据库中有25,000名用户,而所有25,000名用户都有到期的角色。现在,管理员每一次尝试编辑用户数据(例如更新用户角色)时,用户管理页面会在提交时抛出致命错误:内存不足。刷新用户列表显示已更新。



这是什么?如何解决?



谢谢!

解决方案

PHP可以被配置为通过使用 memory_limit 配置选项。



Drupal 6通过将工作分布在多个请求(通过HTTP重定向或AJAX)中,使用批处理API



使用Drupal 5,我建议增加内存限制。如果这还不行,请调查记忆的位置。尝试停用模块,直到您的内存问题消失。这可能不会给您一个解决方案,但至少可能会指向导致内存问题的模块。


Working on a project where we have a Drupal 5 set-up. There are currently 25'000 users in the database, and all 25'000 have a role with an expiry. Now every single time the admin tries to edit the user data (eg. Update User Role), the User Management page throws "Fatal Error: Out of Memory" on submission. Refreshing the user listing shows that the update has been made.

What can this be? How can I fix it?

Thanks!

解决方案

PHP can be configured to use a limited amount of memory per HTTP request by means of the memory_limit configuration option.

Drupal 6 works around this and other resource limitations by distributing the work across several requests (via HTTP redirect or AJAX) using the Batch API.

With Drupal 5, I suggest increasing the memory limit. If this still does not work, investigate where the memory goes. Try deactivating modules until your memory problem goes away. This might not give you a solution, but might at least point you to the module that causes the memory problem.

这篇关于Drupal - 用户管理 - 内存不足错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆