Hi Philip,
That seems like too much memory per httpd.
Does the memory usage grow overtime, or is it static?
If it's static, then the BIG data structure(s) you're storing in
RAM may need to go to disk.
If it grows over time, maybe a data structure is unintentionally
being treated as a global variable --- because the variable persists
between requests the data structure may keep growing and growing.
The solution may be to lexically declare the variable with 'my' so
that it only survives for the scope in which it is declared.
If there is no programming solution ... you can also set the
MaxRequestsPerChild in httpd.conf so that after a certain number of
requests the child dies and frees its memory.
NIge
Nigel Hamilton
On Sun, 18 Feb 2001, Philip Mak wrote:
Recently, my machine got an upgrade from 128 MB RAM to 386 MB RAM.
The modperl enabled httpd process used to take up less than 10 MB each.
But now, after the memory upgrade it is suddenly taking up 86 MB. Here is
an excerpt from "top" (sorted by memory usage):
PID USER PRI NI SIZE RSS SHARE STAT LIB %CPU %MEM TIME COMMAND
3746 tuxedo15 0 139M 128M 964 R 0 95.6 34.1 45:22 wusage
7257 nobody 0 0 103M 86M 84944 S 0 0.0 22.9 0:00 httpd
7253 nobody 0 0 102M 86M 85028 S 0 0.0 22.9 0:00 httpd
7263 nobody 0 0 102M 86M 85032 S 0 0.3 22.9 0:00 httpd
Does anyone have suggestions on how to find out the problem/fix it?
The httpd.conf has not been modified in a month, and the memory upgrade
was done just three days ago. So, AFAIK the only thing on the machine that
has changed is the amount of RAM.
-Philip Mak ([EMAIL PROTECTED])