执行搜索索引时,Drupal(6.19)cron会耗尽内存 [英] Drupal (6.19) cron exhausts memory when doing search indexing

查看:124
本文介绍了执行搜索索引时,Drupal(6.19)cron会耗尽内存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Drupal 6.19安装已经运行了大约六个月。客户一直在积极地使用它发布更多的内容。



但是,发生了一些事情,因为现在cronjob没有完成。



致命错误:允许的内存大小为134217728个字节(尝试分配36230464字节)在/ xxxx/modules/search/search.module第444行



As你看,我在PHP.ini中有128M内存限制,而search.module正在尝试分配相当大的数量,36M。因为我无法想出为什么search.module会这样做的原因,我问你们,如果你有任何提示,我可以如何进一步。增加内存限制是不可能的,因为Drupal在托管环境中。



我已经将索引下载到10个节点,并将最短字长改为5个字符。我无法理解索引10个节点将如何消耗所有内存。



如何调试?要尝试什么任何想法将不胜感激!

解决方案

查看/XXX/modules/search/search.module中的第444行,代码是那么?



我想我们需要更多地了解你的网站的内容。该网站有多大?多少个节点?每个节点的文本大约是多少?



检查你的数据库,你的节点使用多少存储空间?整个数据库的大小是多少?



您是否安装了一个模块,可以在文件系统上搜索附件文件和文件(例如 http://drupal.org/project/search_files )?


My Drupal 6.19 installation has been running about six months. Client has been activately using it publishing more content.

However, something has happened, because now cronjob does not finish.

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 36230464 bytes) in /XXX/modules/search/search.module on line 444

As you see, I have 128M memory limit in PHP.ini and search.module is trying to allocate quite big amount, 36M. Because I cant come up with any reason why search.module would do that, I ask you guys if you have any hints how I could proceed further. Increasing memory limit is not possible as Drupal is in hosted environment.

I've limited indexing down to 10 nodes at time and changed shortest word length to 5 characters. I can't understand how indexing 10 nodes would anyhow consume all that memory.

How to debug? What to try? Any ideas would be appreciated!

解决方案

Look at line 444 in /XXX/modules/search/search.module, what's the code there?

I think we need to know more about the content of your site. How big is the site? How many nodes? How much text per node, approximately?

Check in your database, how much storage do your nodes use? What's the size of the entire database?

Do you have a module installed that allows you to search attached files and files on the file system (like http://drupal.org/project/search_files)?

这篇关于执行搜索索引时,Drupal(6.19)cron会耗尽内存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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