Re: initVM() crash and web.py

2009-06-16 Thread Neha Gupta
Aric's suggestion seems to have done the trick. I just added "from web.wsgiserver import WorkerThread" and then did exactly as the code snippet that Aric sent below. - Neha On Mon, Jun 15, 2009 at 3:27 PM, Aric Coady wrote: > On Jun 15, 2009, at 12:12 PM, Neha Gupta wrote: > >> The problem am h

Re: initVM() crash and web.py

2009-06-15 Thread Andi Vajda
On Mon, 15 Jun 2009, Neha Gupta wrote: I have lucene-2.4.1-py2.5-macosx-10.5-i386.egg installed which I believe should be the latest? You have the latest lucene but maybe not the latest PyLucene. The complete version is encoded in the source archive you downloaded. The very latest PyLucene wa

Re: initVM() crash and web.py

2009-06-15 Thread Neha Gupta
I have lucene-2.4.1-py2.5-macosx-10.5-i386.egg installed which I believe should be the latest? - Neha On Mon, Jun 15, 2009 at 3:36 PM, Andi Vajda wrote: > > On Mon, 15 Jun 2009, Neha Gupta wrote: > > The problem am having is that when I send a few requests one after the >> other >> then the se

Re: initVM() crash and web.py

2009-06-15 Thread Andi Vajda
On Mon, 15 Jun 2009, Neha Gupta wrote: The problem am having is that when I send a few requests one after the other then the server crashes. I tried to put initVM() right after import lucene statement at the top of the program but the crash still happens. I also read this post: http://lists.osa

Re: initVM() crash and web.py

2009-06-15 Thread Aric Coady
On Jun 15, 2009, at 12:12 PM, Neha Gupta wrote: The problem am having is that when I send a few requests one after the other then the server crashes. I tried to put initVM() right after import lucene statement at the top of the program but the crash still happens. I also read this post: htt

initVM() crash and web.py

2009-06-15 Thread Neha Gupta
Hello, I have a very simple webserver that I set up using web.py. See the simplest example here: http://webpy.org/cookbook/helloworld The only change that I have above is that I also have a /search url that is handled using "class search" which just searches an index and prints out the hits. The