Andi Vajda wrote:
Also, when running in mod_python, how are the threads PyLucene is running in initialized ? If they are not instances of PythonThread, that is, if they are not initialized by libgcj, then things are going to crash really fast.
Hi
Me and David Moore (from St James Software) have been trying to get PyLucene going in our applications recently.
They can run either as standalone servers (using inbuilt Python HTTP server) or using mod_python inside Apache.
So we have done lots of testing to try and work out the best way to run inside mod_python.
Basically on Linux PyLucene works fine in mod_python because you don't need to initialize the Python threads (there is only one thread per process).
On Windows it is another story. It turns out to be basically impossible to get it to work correctly, because the threads are created by Apache, which then tells Python to initialize them. But gcj cannot currently handle initializing existing native threads, so the garbage collector always dies.
Our solution here is to launch another process which handles the indexing, and talk to it via pipes (we'll probably replace this with an actual web server listening on a different port to make it more robust).
Is anyone else wrestling with these issues?
Regards David _______________________________________________ pylucene-dev mailing list [email protected] http://lists.osafoundation.org/mailman/listinfo/pylucene-dev
