i lowered the config parameter 
MaxRequestsPerChild 30
so at least it keeps running, but i think that can't be the solution...
as soon as i increase it the memory consumtion increases linear....
here is the info :

top:
  1:39pm  up 24 days, 20:55,  1 user,  load average: 0.00, 0.00, 0.00
57 processes: 56 sleeping, 1 running, 0 zombie, 0 stopped
CPU states:  0.3% user,  0.3% system,  0.0% nice, 99.2% idle
Mem:   254456K av,  189052K used,   65404K free,       0K shrd,   23128K
buff
Swap:  273064K av,    7008K used,  266056K free                   77824K
cached

  PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
32543 root      14   0  1060 1060   840 R     0.3  0.4   0:00 top
32353 apache     9   0  3516 3516  2304 S     0.1  1.3   0:00 httpd
32476 root      10   0  1952 1924  1452 S     0.1  0.7   0:00 sshd
    1 root       8   0   124   72    68 S     0.0  0.0   0:08 init
    2 root       8   0     0    0     0 SW    0.0  0.0   0:00 keventd
    3 root       9   0     0    0     0 SW    0.0  0.0  13:53 kswapd
    4 root       9   0     0    0     0 SW    0.0  0.0   0:00 kreclaimd
    5 root       9   0     0    0     0 SW    0.0  0.0   0:07 bdflush
    6 root       9   0     0    0     0 SW    0.0  0.0   0:00 kupdated
    7 root      -1 -20     0    0     0 SW<   0.0  0.0   0:00
mdrecoveryd
   72 root       9   0     0    0     0 SW    0.0  0.0   0:00 khubd
  408 root       9   0   352  332   284 S     0.0  0.1   0:04 syslogd
  413 root       9   0   764  180   168 S     0.0  0.0   0:02 klogd
  518 root       9   0   132   44    44 S     0.0  0.0   0:01 automount
  530 daemon     9   0   108   44    40 S     0.0  0.0   0:00 atd
  545 named      9   0  2424 1336   928 S     0.0  0.5   0:00 named
  546 named      9   0  2424 1336   928 S     0.0  0.5   0:00 named
  550 named      9   0  2424 1336   928 S     0.0  0.5   0:19 named
  551 named      9   0  2424 1336   928 S     0.0  0.5   0:01 named
  552 named      9   0  2424 1336   928 S     0.0  0.5   0:03 named
  562 root       9   0   532  452   368 S     0.0  0.1   0:14 sshd
  673 root       9   0   456  440   388 S     0.0  0.1   0:01 crond
  709 root       9   0    64    4     4 S     0.0  0.0   0:00 mingetty
  710 root       9   0    64    4     4 S     0.0  0.0   0:00 mingetty
  711 root       9   0    64    4     4 S     0.0  0.0   0:00 mingetty
  712 root       9   0    64    4     4 S     0.0  0.0   0:00 mingetty
  713 root       9   0    64    4     4 S     0.0  0.0   0:00 mingetty
  714 root       9   0    64    4     4 S     0.0  0.0   0:00 mingetty
11076 root       8   0  4360 3648  2112 S     0.0  1.4   0:09
miniserv.pl
27813 root       9   0   812  392   332 S     0.0  0.1   0:02 sendmail
12669 root       9   0  1032 1032   844 S     0.0  0.4   0:00
safe_mysqld
12697 mysql      9   0  8940 8940  2332 S     0.0  3.5   0:15 mysqld
12699 mysql      8   0  8940 8940  2332 S     0.0  3.5   0:17 mysqld
12700 mysql      9   0  8940 8940  2332 S     0.0  3.5   0:27 mysqld
12701 mysql      9   0  8940 8940  2332 S     0.0  3.5   0:00 mysqld
 3113 mysql      9   0  8940 8940  2332 S     0.0  3.5   1:02 mysqld
 3759 mysql      9   0  8940 8940  2332 S     0.0  3.5   0:01 mysqld
19135 root       9   0  1108 1108   868 S     0.0  0.4   0:00 xinetd
20367 root       9   0  2048 2048  1800 S     0.0  0.8   0:00 httpd
30676 root       9   0   628  624   544 S     0.0  0.2   0:00 crond
30677 root       8   0   908  908   768 S     0.0  0.3   0:00 run-parts
30679 root       9   0   552  552   464 S     0.0  0.2   0:00 awk
30680 root       9   0   880  880   756 S     0.0  0.3   0:00 sa1
30682 root       9   0   512  512   448 S     0.0  0.2   0:00 sadc
32210 apache     9   0  9104 9104  2312 S     0.0  3.5   0:00 httpd
32238 apache     9   0  6132 6132  2304 S     0.0  2.4   0:00 httpd
32243 apache     9   0  3880 3880  2308 S     0.0  1.5   0:00 httpd
32337 apache     9   0  5540 5540  2312 S     0.0  2.1   0:00 httpd
32354 apache    11   0  4732 4732  2324 S     0.0  1.8   0:00 httpd
32355 apache     9   0  4464 4464  2296 S     0.0  1.7   0:00 httpd
32440 apache     9   0  4112 4112  2320 S     0.0  1.6   0:00 httpd
32453 apache     9   0  3220 3220  2280 S     0.0  1.2   0:00 httpd
32454 apache     9   0  3392 3392  2312 S     0.0  1.3   0:00 httpd
32485 wgsebast   9   0  1324 1324  1008 S     0.0  0.5   0:00 bash
32517 root       9   0  1196 1196   848 S     0.0  0.4   0:00 su
32518 root       9   0  1464 1464  1052 S     0.0  0.5   0:00 bash
32542 apache     9   0  3024 3024  2292 S     0.0  1.1   0:00 httpd

ps waux | grep mysql && ps waux | grep httpd

[root@ds217-115-141-23 wgsebastian]# ps waux | grep mysql && ps waux |
grep httpd
root     12669  0.0  0.4  2140 1032 ?        S    Jun22   0:00 /bin/sh
/usr/bin/safe_mysqld --defaults-file=/etc/my.cnf
mysql    12697  0.0  3.5 53228 8944 ?        S    Jun22   0:15
/usr/libexec/mysqld --defaults-file=/etc/my.cnf --basedir=/usr --data
mysql    12699  0.0  3.5 53228 8944 ?        S    Jun22   0:17
/usr/libexec/mysqld --defaults-file=/etc/my.cnf --basedir=/usr --data
mysql    12700  0.0  3.5 53228 8944 ?        S    Jun22   0:27
/usr/libexec/mysqld --defaults-file=/etc/my.cnf --basedir=/usr --data
mysql    12701  0.0  3.5 53228 8944 ?        S    Jun22   0:00
/usr/libexec/mysqld --defaults-file=/etc/my.cnf --basedir=/usr --data
mysql     3113  0.0  3.5 53228 8944 ?        S    Jun24   1:02
/usr/libexec/mysqld --defaults-file=/etc/my.cnf --basedir=/usr --data
mysql     3759  0.0  3.5 53228 8944 ?        S    Jun24   0:01
/usr/libexec/mysqld --defaults-file=/etc/my.cnf --basedir=/usr --data
root     20367  0.0  0.8  4648 2048 ?        S    00:01   0:00
/www/bin/httpd -DHAVE_PROXY -DHAVE_ACCESS -DHAVE_ACTIONS -DHAVE_ALIAS
apache   32210  0.1  3.7 18304 9576 ?        S    13:32   0:00
/www/bin/httpd -DHAVE_PROXY -DHAVE_ACCESS -DHAVE_ACTIONS -DHAVE_ALIAS
apache   32353  0.1  1.3  6024 3556 ?        S    13:35   0:00
/www/bin/httpd -DHAVE_PROXY -DHAVE_ACCESS -DHAVE_ACTIONS -DHAVE_ALIAS
apache   32354  0.2  2.0  9168 5108 ?        S    13:35   0:00
/www/bin/httpd -DHAVE_PROXY -DHAVE_ACCESS -DHAVE_ACTIONS -DHAVE_ALIAS
apache   32355  0.2  1.9  8764 5080 ?        S    13:35   0:00
/www/bin/httpd -DHAVE_PROXY -DHAVE_ACCESS -DHAVE_ACTIONS -DHAVE_ALIAS
apache   32440  0.0  1.7  7504 4508 ?        S    13:37   0:00
/www/bin/httpd -DHAVE_PROXY -DHAVE_ACCESS -DHAVE_ACTIONS -DHAVE_ALIAS
apache   32453  0.1  1.8  8724 4648 ?        S    13:38   0:00
/www/bin/httpd -DHAVE_PROXY -DHAVE_ACCESS -DHAVE_ACTIONS -DHAVE_ALIAS
apache   32454  0.1  1.6  7464 4152 ?        S    13:38   0:00
/www/bin/httpd -DHAVE_PROXY -DHAVE_ACCESS -DHAVE_ACTIONS -DHAVE_ALIAS
apache   32542  0.0  1.5  6788 3928 ?        S    13:39   0:00
/www/bin/httpd -DHAVE_PROXY -DHAVE_ACCESS -DHAVE_ACTIONS -DHAVE_ALIAS
apache   32566  0.1  1.1  4980 2828 ?        S    13:40   0:00
/www/bin/httpd -DHAVE_PROXY -DHAVE_ACCESS -DHAVE_ACTIONS -DHAVE_ALIAS
apache   32579  0.5  1.5  7112 3980 ?        S    13:40   0:00
/www/bin/httpd -DHAVE_PROXY -DHAVE_ACCESS -DHAVE_ACTIONS -DHAVE_ALIAS
apache   32581  0.0  0.9  4764 2416 ?        S    13:40   0:00
/www/bin/httpd -DHAVE_PROXY -DHAVE_ACCESS -DHAVE_ACTIONS -DHAVE_ALIAS
apache   32582  0.0  0.9  4808 2532 ?        S    13:40   0:00
/www/bin/httpd -DHAVE_PROXY -DHAVE_ACCESS -DHAVE_ACTIONS -DHAVE_ALIAS

i have to thank you...

Sebastian



> -----Ursprüngliche Nachricht-----
> Von: Chadwick, Russell [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 22. Juni 2001 20:59
> An: '[EMAIL PROTECTED]'
> Betreff: RE: [PHP] apache and php ate up all my memory :-[
> 
> 
> 
> Can you post the information at the header of top
> like...
> CPU states:  0.4% user,  0.0% nice,  3.6% system,  0.0% 
> interrupt, 96.1%
> idle
> Mem: 47M Active, 147M Inact, 36M Wired, 11M Cache, 35M Buf, 7328K Free
> Swap: 1024M Total, 144K Used, 1024M Free
> 
> and also the output of 
> ps waux | grep mysql && ps waux | grep httpd
> 
> Thx
> 
> ---
> Toolshed Computer Productions - Professional PHP Hosting
>      Hosting - Dedicated Servers - Design - Programming
>      http://www.toolshed51.com
> 
> -----Original Message-----
> From: Sebastian Stadtlich [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 22, 2001 6:36 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] apache and php ate up all my memory :-[
> 
> 
> Hi all
> 
> Probably some Apache/mysql/php-Admin gurus can give me a hint :
> i just moved a website to it's own server ( my first one).
> now apache had eaten up all physical and virtual memory
> some httpd had allocated 45MB of RAM, memory ran out myqsl crashed...
> 
> php is compiled in to apache 
> Apache/1.3.19 (Unix) PHP/4.0.4pl1 
> these are the relevant entries is my  httpd.conf
> Timeout 300
> KeepAlive On
> MaxKeepAliveRequests 500
> KeepAliveTimeout 15
> MinSpareServers 5
> MaxSpareServers 20
> StartServers 20
> MaxClients 150
> MaxRequestsPerChild 500
> 
> in the php.ini
> 
> memory_limit = 8M 
> ( but i think that has nothing to do with it)
> 
> i can't find anything in the logfiles exept that some httpd 
> were already
> killed by itself, because
> there was no memory left that they could eat....
> needless to say that my site does NOT get that much traffic that the
> server was at the edge
> of it's capacity.....
> HELP...
> 
> Sebastian 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: 
> [EMAIL PROTECTED]
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: 
> [EMAIL PROTECTED]
> 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to