You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Chris Faust <CF...@doyougot.com> on 2003/01/13 16:15:58 UTC

Memory Usage

Hi All,

I've converted my site to mod_perl and everything seems great..

Sometimes it will run for days without an issue and other times the machine
will die, normally because of out of memory problems.

My question is, should I be doing anything to worry about memory? I mean I
would think when there was only X amount of memory left then Apache would
know what to do and not use everything that is left (plus some).

Maybe I'm doing something else wrong, I'm not sure..

I don't have the machine local to me, but during normal traffic I've seen
the memory go down at little as 5 meg and then come back on my SSH
connection (normally it would flux between 5-10 meg free up to 100 meg free,
there is 1 gig on the box).

I know this isn't a lot of info, but I'm not positive what I should even be
looking for, I believe mod_perl is all setup correctly, I'm not getting any
strange errors from my scripts or in the error_log.

We currently have 2 machines setup, one is RH 8 with Apache and mod_perl 2.0
and the other is RH 7.3 with Apache and mod_perl 1.3, both seem to have the
same problem although the 2.0 machine seems to have the problem more often.
Both at P4's with 1 gig of ram.

Any help or direction would be appreciated.

Thanks
-Chris



Re: Memory Usage

Posted by do...@zsi.at.
Hi!

On Mon, Jan 13, 2003 at 10:15:58AM -0500, Chris Faust wrote:

> Sometimes it will run for days without an issue and other times the machine
> will die, normally because of out of memory problems.
> ..
> Any help or direction would be appreciated.

There is quite a lot of documentation about memory issues at
  http://perl.apache.org/docs/1.0/guide/performance.html

or in the mod_perl Site in general.
  http://perl.apache.org
  
Did you RTFM?


-- 
#!/usr/bin/perl                               http://domm.zsi.at
for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/}