[pylucene-dev] Max Heap size problem

Andi Vajda vajda at osafoundation.org
Thu Mar 27 10:06:27 PDT 2008


On Thu, 27 Mar 2008, João Rodrigues wrote:

> Sorry for the 7-day delay but it was only today I managed to sit down at the
> computer with the issue and try your Hello solution. So, I ran:
>
> C:\Documents and Settings\joaorodrigues\Desktop>java -Xmx1024m -jar
> Hello.jar
> Hello World!
>
> And it seems to work. I tried another:
>
> C:\Documents and Settings\joaorodrigues\Desktop>java -Xms1024m -Xmx1024m
> -jar He
> llo.jar
> Hello World!
>
> And it worked again.
>
> So, I don't know what the problem is.. If I set PyLucene's maxheap over
> 800m, it doesn't start...

I gave this a try on my Windows install (win2k, java 6, python 2.5.1) and it 
works fine for me:

   newt:vajda> python
   Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] onwin32
   Type "help", "copyright", "credits" or "license" for more information.
   >>> import lucene; lucene.initVM(lucene.CLASSPATH, maxheap='1024m'); lucene.Document()
   <jcc.JCCEnv object at 0x008B62B0>
   <Document: Document<>>
   >>>

Andi..


More information about the pylucene-dev mailing list