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 tuxedo 15 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.
Well, each process is only using a couple of MBs of real RAM. It looks
like you're doing something in the parent process that's using up 85MB,
so you should take a good look at your startup.pl.
For info on interpreting the output of top:
http://perl.apache.org/guide/performance.html#Measuring_the_Memory_of_the_Proc
- Perrin