[mod_python] High traffic recommendations

Graham Dumpleton grahamd at dscpl.com.au
Thu Feb 16 23:56:39 EST 2006


Could be caused by this:

  https://issues.apache.org/jira/browse/MODPYTHON-109

But could also simply be that you have a handler which is dealing
with a request that takes a long time for it to generate the response.
If it takes too long, Apache will not wait for it to finish the response
and will kill off child process forcibly.

Graham

Marc D. Murray wrote ..
> After changing and tweaking, I now have a strange situation. Apache2
> processes will not die voluntarily. After Apache crashed with a
> MaxClients error, I checked the logs again, to find a few 404 errors
> from a strange directory. 
> 
> What I mean is 
> 
> File does not
> exist: /home/tomcat/tomcat/webapps/lenya/lenya/pubs/pcsdelta/work/cache/live/
> 
> When this site isn't even being served by apache, never mind not being
> on port 80 at all. How did this get in there? Add to that, mod_jk has
> been disabled since Tuesday.
> 
> Ignoring the lenya errors for a second, when I issue the command to stop
> apache (/etc/init.d/apache2 stop). It takes a little while, and I see
> (in the apache error log) a bunch of warnings and then errors looking
> like what I've pasted below.
> 
> [Thu Feb 16 22:49:33 2006] [error] child process 15860 still did not
> exit, sending a SIGKILL
> [Thu Feb 16 22:49:33 2006] [error] child process 15102 still did not
> exit, sending a SIGKILL
> [Thu Feb 16 22:49:33 2006] [error] child process 16086 still did not
> exit, sending a SIGKILL
> [Thu Feb 16 22:49:33 2006] [error] child process 16087 still did not
> exit, sending a SIGKILL
> [Thu Feb 16 22:49:33 2006] [error] child process 16091 still did not
> exit, sending a SIGKILL
> [Thu Feb 16 22:49:34 2006] [notice] caught SIGTERM, shutting down
> [Thu Feb 16 22:49:41 2006] [notice] suEXEC mechanism enabled
> (wrapper: /usr/lib/apache2/suexec2)
> [Thu Feb 16 22:49:41 2006] [notice] mod_python: Creating 48 session
> mutexes based on 160 max processes and 0 max threads.
> [Thu Feb 16 22:49:42 2006] [notice] Apache/2.0.54 (Debian GNU/Linux)
> mod_python/3.2.7 Python/2.4.1 PHP/4.3.10-16 configured -- resuming
> normal operations
> 
> It's like apache2 is having a problem stopping the child processes the
> normal way. Am I right? If this is my fault somehow, what (in
> mod_python) could possibly cause apache processes to not want to die?
> Un-closed database connections maybe? 
> 
> My databases are bsddb3 to cache the results of xml-->dictionary and
> openldap for the users. The bsddb files are opened and closed each time
> they're needed. .....
> 
> but then, when does the DBEnv get closed .??... hmmmm
> 
> gone to check the code
> 
> /marcdm
> 
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python


More information about the Mod_python mailing list