sphinx 占用大量内存

http://www.coreseek.com/forum/2_1847_0.html(转)

刚开始没改下面2句时,内存占用比较多,在生成index的时候就占用了!

下面是解决方法:

每个索引中写上

docinfo = inline; #前提是source配置中不能有attr_string.....不能有字符串属性字段

ondisk_dict = 1;

这样就把索引放到文件中而不是内存中了

原文地址:https://www.cnblogs.com/flex_fly/p/3747717.html