Re: normal for Apache to hang?
| From: | Christian Reiniger | Date: | Thu, 15 Mar 2001 12:45:13 +0000 |
| Subject: | Re: normal for Apache to hang? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-44017@lists.php.net to get a copy of this message | ||
On Thursday 15 March 2001 06:37, you wrote:
> Does your Apache hang?
> Is that normal?
> To have commands sitting for 1-2 minutes?
> PID USER PRI NI SIZE RSS SHARE STAT LIB %CPU %MEM TIME
> COMMAND [[.... snip some other processes here ....]]
> 12345 www 9 0 4648 4648 2240 S 0 0.0 0.9 1:05
> httpd 12346 www 9 0 4792 4792 2244 S 0 0.0 0.9
> 1:12 httpd 12347 www 9 0 4600 4600 2240 S 0 0.0 0.8
> 1:08 httpd 12348 www 9 0 4964 4964 2240 S 0 0.0 0.9
> 1:08 httpd 12349 www 10 0 4912 4912 2292 S 0 0.0
> 0.9 1:08 httpd 12352 www 9 0 4868 4868 2248 S 0 0.0
> 0.9 1:04 httpd 12358 www 9 0 4736 4736 2248 S 0
> 0.0 0.9 1:05 httpd 12359 www 9 0 4744 4744 2240 S 0
> 0.0 0.9 1:09 httpd 12360 www 9 0 5036 5036 2428 S
> 0 0.0 0.9 1:10 httpd 12361 www 9 0 4656 4656 2248 S
> 0 0.0 0.9 1:12 httpd 12377 mysql 9 0 6624 6624 2076 S
> 0 0.0 1.2 0:04 mysqld 12378 mysql 9 0 6624 6624 2076 S
> 0 0.0 1.2 0:05 mysqld
Apache isn't hanging - it's just keeping its existing subprocesses at
hand in case some new request comes in. If apache would spawn a new
subprocess on each request it would be painfully slow.
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Pretty cool, the kind of power information technology puts in our hands
these days.
- Securityfocus on probing 36000000 hosts for known problems in 3 weeks