Re:Hire HN: Apache is crashing every hour. Seeking Drupal/Ng...
by chrisbolt on Wednesday September 01, 2010 @02:36AM
(#1652055)
2. Eventually, the number of threads starts rising. 20 threads. 40 threads. 60 threads. 90 threads. 130 threads.
Threads or processes? If using the worker mpm, switch to prefork.
If problems persist, strace a frozen process to see what it's doing. strace is an incredibly useful diagnostic tool.
You could even set up a script to parse the server-status page, find out which processes are hung based on the SS column (seconds since beginning of most recent request) and kill that PID... but that's not pretty.
Threads or processes? If using the worker mpm, switch to prefork.
If problems persist, strace a frozen process to see what it's doing. strace is an incredibly useful diagnostic tool.
You could even set up a script to parse the server-status page, find out which processes are hung based on the SS column (seconds since beginning of most recent request) and kill that PID... but that's not pretty.