On 1. sep. 2005, at 11.04, N. C. Deepak Ramesh wrote:
Hi,
I, I'm sorry to say, gave up on PyLucene.PythonThread.
Too bad. So what do you do now?
Basically, the only thing I did (with cherrypy 2.1(svn 525)) was to
pass a custom serverClass to cherrypy.server.start() (The
WorkerThread in my derived _cherrypywsgiserver inherits from
PyLucene.PythonThread in stead of threading.Thread).
On Linux this sort of works, sometimes...but never for long.
Un-scientifically speaking - most times when I start the server I
get "GC Warning: Out of Memory! Returning NIL!", but sometimes the
server starts without errors. When the server is started it will
report "socket.error: (11, 'Resource temporarily unavailable')" on
any attempt of executing a PyLucene enabled method.
The funny thing is that the exact same code works 100% on Mac OS X
(10.4.2). Unfortunately for me my servers are running Linux.
I basically did the same thing (but am using Win 2k). Not very
effective. :(
Did some work yesterday night and have resorted to using an XMLRPC
server which gives back search results to the cherrypy page. And am
not getting this problem (No sight of those cursed threads I
guess). Hopefully this will work solid.
Hi,
Well, sort of the same as you only with Jetty/Lucene. I've built a
servlet that does all the searching and I format and deliver the
content with cherrypy (and sometimes mod_python).
I any case, PyLucene is not involved in the process.
regards
/rune
Happy those, who can remain at Highbury!
Jane Austen (1775-1817)
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev