[Twisted-web] Different behavior of twistd with and without -n
jarek.zgoda at sensisoft.com
Fri May 25 03:30:04 EDT 2007
Terry Jones napisał(a):
> While I realize there's probably something up with PyLucene, I'm wondering
> if anyone can suggest why running with twistd -n is preventing the
> crashing. What else does -n do, other than (presumably) forking and
> running the server in the child?
I have other issues regarding forking in twistd and PyLucene. My server
works reliably (on linux, didn't try on OSX) only if I run it without
daemonizong twistd. If I daemonize twistd, the memory consumption grows
out of control and finally system's oomkiller starts killing processes.
There's one Queue object that holds indexing requests and it grows
indefinitely without freeing any memory, so the whole twistd process
eats more and more memory while requests come to the system.
As a temporary solution we start the server under screen session.
"We read Knuth so you don't have to."
More information about the Twisted-web