Home  >  Article  >  Backend Development  >  关于coreseek有技术含量的问题

关于coreseek有技术含量的问题

WBOY
WBOYOriginal
2016-06-23 13:40:07882browse

装好coreseek后,测试是正常的,然后实际应用 开始用的是phpcms环境
重建了索引,然后就开始正式搜过了
点搜索后提示这个: Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 775172097 bytes) in D:\WWW\phpcms\modules\search\classes\sphinxapi.class.php on line 637
然后把php.ini中的memory的值改成了2048M  即 memory_limit = 2048M
重启服务,然后重建索引,再点击搜索,问题依旧,不得不说是个高难度问题哈


回复讨论(解决方案)

tried to allocate 775172097 bytes

需要768MB memory。
你php.ini改成memory_limit = 2048M,应该是够的。
你修改后,还是显示
Allowed memory size of  134217728 ?
如果是,就表示没有修改成功。

可以这样,在php页面中加入 ini_set('memory_limit','2048M');

重启运行php脚本的进程,或者检查你修改的文件路径是不是服务器真正读取的

这问题有点神转折...哈哈哈哈

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn