Re: php4 crashing servers
| From: | Dan Phoenix | Date: | Thu, 19 Oct 2000 14:32:07 +0000 |
| Subject: | Re: php4 crashing servers | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-3794@lists.php.net to get a copy of this message | ||
Well i did have a look at php's memory usage. Problem was my network
was under load from a dns misconfiguration other day that may have been
cause of it. Each httpd process seemed to use 32 megs with about 128
simulatious connections a second...i know that it was a dns issue but
was unplease that php4 crashed the server to an unusable state which
required a reboot to free the memory.
usually it only uses KB of memory.
But do the math 32M * 150 maxclients can easily kill a server.
The optimizer is in beta. How much performance can be forseen
from using it? Running anything that says beta is usually not an option
here.
On Fri, 20 Oct 2000, Cameron Brunner wrote:
> Date: Fri, 20 Oct 2000 00:03:17 +1000
> From: Cameron Brunner <gamr@gattcomp.com.au>
> To: Dan Phoenix <dphoenix@bravenet.com>
> Cc: php-db@lists.php.net
> Subject: Re: [PHP-DB] php4 crashing servers
>
> Dan Phoenix wrote:
>
> > setting maxclients to 150 in apache
> > and having a linux box with 250 megs of ram
> > crashed the box with an error saying
> > VX: cannot free_pages
>
> are you crazy?!? the setting should be around 250 - 32 or 64meg for os /
> apache size (generally 4-8meg)
>
> at best of 4meg i would not load this upto more than 50!
>
> >
> > etc something like that.
> > I am stiull running php3 and would like to move to php4.
> > should i compile with low-memory?
> > I still can;t beleive php4 crashed our servers like that.
> >
> > anyone run into this?
>
> there is no need to compile with low memory, you have plent, just so long as
> you dont hit above about 50 similtanious users. if you require more than that
> many users add more ram. be sure to install the latest php and zend optimizer
> too, this will save a lot of time on the scripts.
>
>
> Cameron Brunner
> Director of Operations
> dynomyte.net
>
>