On Tue, Jun 17, 2014 at 09:25:27PM -0700, Andi Vajda wrote: > > Thank you Andi, I will try to increase the jvm memory. > > But if this was indeed a jvm problem, shouldn't a jvm exception be thrown > > instead of the C++ runtime std::bad_alloc ? > > With JNI, all is possible. And without a stacktrace (no attachments please), > it's just a guess.
Ah, here is the stacktrace http://pastebin.com/MiMeyJxV Also, I've tried increasing the memory as you have suggested like this: lucene.initVM(initialheap='5000m', maxheap='5001m', maxstack='1000m', vmargs=['-Djava.awt.headless=true']) I've read about initialheap,maxheap and maxstack from http://lucene.apache.org/pylucene/jcc/readme.html#api The memory is still increasing at a steady rate. Now it's at 6.6% of 15718mb (1037mb) > > Andi..