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.




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