httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oli...@veryhip.com
Subject [users@httpd] Why oh why do I have apache proc's at 600MB somtimes?
Date Tue, 08 Jun 2004 15:38:16 GMT
	Could a slow disk make apache swell up to 200MB+ ?  Could the pause while
waiting for the disk if lots of mysql selects/inserts are happening cause
apache to 'hang' and wait for the script to execute?  I have a nice
machine.  It's a P4 2.4 800fsb 1gb DDR400 and 865G chipset.  Pretty
decent.  But, I have an ATA133 160GB hard disk..

hdparm -t /dev/hda2

/dev/hda2:
 Timing buffered disk reads:  64 MB in  6.25 seconds = 10.24 MB/sec

The above is how SLOW this disk is when I get lots of requests happening
and I get these apache processes that are over 100MB a piece, and if
several of them come up, I quickly start swapping, and it gets WORSE.

I do run php and mod_perl.  I use mod_perl to log requests in a mysql
database, and i like that alot.  so, that's mod_perl's only use. my php
scripts are very simple and have mysql_free_result() and mysql_close()
functions at the end of the file and exit;.  But, the php scripts are not
"broken" or "miscoded".

Any help greatly appreciated...
Thanks,
Oliver

btw, if nobody can offer a YES or a NO on this question, I am going to
experiment and run mysql on a dedicated server that's just kinda sitting
there right now and post my successes or problems.  but, i'd rather keep
all things the same and fix the prob.

Below is a snippet of top

 11:14:05 up 19:34,  1 user,  load average: 2.55, 1.68, 1.99
72 processes: 61 sleeping, 11 running, 0 zombie, 0 stopped
CPU states:  11.0% user,   1.1% system,   0.0% nice,  87.8% idle
Mem:   1025264K total,   548096K used,   477168K free,        0K buffers
Swap:  2000020K total,    16372K used,  1983648K free,   160548K cached

  PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
25599 www-data  17   0  307M 307M  5556 R     8.1 30.6   3:32 apache
25606 www-data  16   0  7420 7420  5560 R     7.8  0.7   0:05 apache
25609 www-data  15   0  7496 7496  5560 R     7.5  0.7   0:04 apache
27953 www-data  15   0  7488 7488  5552 R     7.5  0.7   0:04 apache
25598 www-data  17   0  7572 7572  5580 R     6.8  0.7   0:08 apache
25604 www-data  16   0  7496 7496  5556 R     6.5  0.7   0:06 apache
25607 www-data  15   0  7416 7416  5552 R     6.5  0.7   0:04 apache
25602 www-data  12   0  7400 7400  5584 S     5.6  0.7   0:08 apache
28796 root      18   0   952  952   748 R     5.3  0.0   0:00 top
25594 www-data  11   0  7492 7492  5580 S     5.0  0.7   0:06 apache
25603 www-data  11   0  7432 7432  5584 S     4.3  0.7   0:05 apache
25608 www-data  14   0  7420 7420  5560 R     4.0  0.7   0:06 apache
25600 www-data  11   0  7508 7508  5576 S     3.4  0.7   0:06 apache

Notice the 19:33 uptime, i had to reboot yesterday because of this.

25599 is at 307MB!!!  I had lots of requests for PHP pages only, and all
database intensive.  But, I ran these for a LONG time on a P3 with NO
problem, but it had a 40GB disk and was always at least 30MB/sec.

again, thanks,
oliver peek

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message