AW: [PHP] apache and php ate up all my memory :-[

2001-06-25 Thread Sebastian Stadtlich
   0:17
/usr/libexec/mysqld --defaults-file=/etc/my.cnf --basedir=/usr --data
mysql12700  0.0  3.5 53228 8944 ?SJun22   0:27
/usr/libexec/mysqld --defaults-file=/etc/my.cnf --basedir=/usr --data
mysql12701  0.0  3.5 53228 8944 ?SJun22   0:00
/usr/libexec/mysqld --defaults-file=/etc/my.cnf --basedir=/usr --data
mysql 3113  0.0  3.5 53228 8944 ?SJun24   1:02
/usr/libexec/mysqld --defaults-file=/etc/my.cnf --basedir=/usr --data
mysql 3759  0.0  3.5 53228 8944 ?SJun24   0:01
/usr/libexec/mysqld --defaults-file=/etc/my.cnf --basedir=/usr --data
root 20367  0.0  0.8  4648 2048 ?S00:01   0:00
/www/bin/httpd -DHAVE_PROXY -DHAVE_ACCESS -DHAVE_ACTIONS -DHAVE_ALIAS
apache   32210  0.1  3.7 18304 9576 ?S13:32   0:00
/www/bin/httpd -DHAVE_PROXY -DHAVE_ACCESS -DHAVE_ACTIONS -DHAVE_ALIAS
apache   32353  0.1  1.3  6024 3556 ?S13:35   0:00
/www/bin/httpd -DHAVE_PROXY -DHAVE_ACCESS -DHAVE_ACTIONS -DHAVE_ALIAS
apache   32354  0.2  2.0  9168 5108 ?S13:35   0:00
/www/bin/httpd -DHAVE_PROXY -DHAVE_ACCESS -DHAVE_ACTIONS -DHAVE_ALIAS
apache   32355  0.2  1.9  8764 5080 ?S13:35   0:00
/www/bin/httpd -DHAVE_PROXY -DHAVE_ACCESS -DHAVE_ACTIONS -DHAVE_ALIAS
apache   32440  0.0  1.7  7504 4508 ?S13:37   0:00
/www/bin/httpd -DHAVE_PROXY -DHAVE_ACCESS -DHAVE_ACTIONS -DHAVE_ALIAS
apache   32453  0.1  1.8  8724 4648 ?S13:38   0:00
/www/bin/httpd -DHAVE_PROXY -DHAVE_ACCESS -DHAVE_ACTIONS -DHAVE_ALIAS
apache   32454  0.1  1.6  7464 4152 ?S13:38   0:00
/www/bin/httpd -DHAVE_PROXY -DHAVE_ACCESS -DHAVE_ACTIONS -DHAVE_ALIAS
apache   32542  0.0  1.5  6788 3928 ?S13:39   0:00
/www/bin/httpd -DHAVE_PROXY -DHAVE_ACCESS -DHAVE_ACTIONS -DHAVE_ALIAS
apache   32566  0.1  1.1  4980 2828 ?S13:40   0:00
/www/bin/httpd -DHAVE_PROXY -DHAVE_ACCESS -DHAVE_ACTIONS -DHAVE_ALIAS
apache   32579  0.5  1.5  7112 3980 ?S13:40   0:00
/www/bin/httpd -DHAVE_PROXY -DHAVE_ACCESS -DHAVE_ACTIONS -DHAVE_ALIAS
apache   32581  0.0  0.9  4764 2416 ?S13:40   0:00
/www/bin/httpd -DHAVE_PROXY -DHAVE_ACCESS -DHAVE_ACTIONS -DHAVE_ALIAS
apache   32582  0.0  0.9  4808 2532 ?S13: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]




[PHP] apache and php ate up all my memory :-[

2001-06-22 Thread Sebastian Stadtlich

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]




RE: [PHP] apache and php ate up all my memory :-[

2001-06-22 Thread Chadwick, Russell


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]




Re: [PHP] apache and php ate up all my memory :-[

2001-06-20 Thread Andreas D. Landmark

At 19.06.2001 15:37, you wrote:
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...

snipped techie details

My best guess is that somewhere in the code for your site you have a loop which
either allocations or fills up memory with variables on each loop...

For some reason this loop didn't exit as you ment it to, and therefore 
proceeded to
eat as much ram as it possibly could chew in the time it should be allowed 
to run.
You didn't say, but my guess is that this is running some Linux flavor, and 
due to the
poor-ish mem-handling under Linux the box bogged down when it realized 
that it
had nada physical and virtual memory left and therefore did get around to 
killing the
apache-process running the runaway script before you got around to doing it...


-- 
Andreas D Landmark / noXtension
Real Time, adj.:
 Here and now, as opposed to fake time, which only occurs there
and then.




[PHP] apache and php ate up all my memory :-[

2001-06-19 Thread Sebastian Stadtlich

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 



RE: [PHP] apache and php ate up all my memory :-[

2001-06-19 Thread scott [gts]

it could be a bunch of different reasons, ranging
from software to hardware/OS errors

how much total memory is in the machine??


 -Original Message-
 From: Sebastian Stadtlich [mailto:[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