On Sun, 2004-02-29 at 12:43, Ged Haywood wrote: > If I read you right, this only happens when your Apache processes are > inactive for some time. So why not set up a process which keeps them > active, like a kind of watchdog? It would be very simple using LWP or > something like that.
Definitely an option. I could blast the server with ap every 10 minutes. But it's not too elegant in that not all apache children are guaranteed to serve requests, so some will stay in swap. I've been doing a bit more testing actually, and I have to be honest with you here. I'm assuming the httpd processes are in swap, because according to the ps docs, processes surrounded by [square brackets] are swapped out. But I think ps might be lying because as soon as I start apache, the processes appear as [httpd], and even if I blast the server, they stay []'d. Here's what I'm seeing: root 29307 0.0 3.4 24028 17332 ? S 10:51 0:01 /usr/local/apache/bin/httpd nobody 29309 0.0 3.7 25212 18724 ? S 10:51 0:00 [httpd] nobody 29310 0.0 3.9 27260 20228 ? S 10:51 0:02 [httpd] nobody 29311 0.0 4.7 31964 23964 ? S 10:51 0:04 [httpd] nobody 29312 0.0 4.5 30872 23184 ? S 10:51 0:04 [httpd] nobody 29314 0.0 3.7 25388 18896 ? S 10:51 0:00 [httpd] nobody 29315 0.0 4.0 27244 20368 ? S 10:51 0:01 [httpd] nobody 29316 0.0 3.5 24416 17760 ? S 10:51 0:00 [httpd] nobody 29317 0.0 4.2 28476 21544 ? S 10:51 0:03 [httpd] nobody 29318 0.0 4.3 28924 22012 ? S 10:51 0:04 [httpd] nobody 29324 0.0 3.4 24368 17652 ? S 10:51 0:00 [httpd] nobody 29335 0.0 4.1 27744 20824 ? S 10:56 0:01 [httpd] nobody 29339 0.0 3.5 24464 17932 ? S 10:56 0:00 [httpd] notice the parent httpd process isn't surrounded by []. -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html