Can't open lucene index (Java heap space)

99封情书 提交于 2019-12-16 18:06:29

问题


I want to grab some data from lucene index file. But I can't read it.

I try to use Luke, but it always crashes with java.lang.OutOfMemoryError: Java heap space. Note -Xmx can't help me. I try -Xmx512, -Xmx1024 and even -Xmx2048.

I try to use Solr also, but gets java.lang.OutOfMemoryError: Java heap space too.

Any ideas how I can extract some data from Lucene?

P. S. I use lucene 2.3.0. My index file is 1.8 Gb size.


回答1:


What size is the data you are trying to fetch? Maybe the result set is too large to handle?




回答2:


I create my own simple lucene client, based on org.apache.lucene.search.Searcher. And grab data that I want.



来源:https://stackoverflow.com/questions/7259736/cant-open-lucene-index-java-heap-space

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!