Re: Is this startup.pl ok?
Philip Mak [EMAIL PROTECTED] writes: My Apache with modperl is acting weird with respect to memory usage. When it first starts up, each process uses 10 MB of memory. As time goes on, these processes' memory usage grows and grows. Right now they're 20 MB (uptime 2 days). When I rebooted the machine two days ago, they were using 80 MB each (shared memory, though). MaxRequestsPerChild is set to 200. What operating system? I'd be inclined to stuff a lot more of the generic modules you use (CGI, Template Toolkit, URI, Date modules) into startup.pl. The more the merrier. If a process starts at 10M and grows to 80M that's 70M per process, _unshared_ for sure. Not good. -- Dave Hodgkinson, http://www.hodgkinson.org Editor-in-chief, The Highway Star http://www.deep-purple.com Interim CTO, web server farms, technical strategy
Re: Is this startup.pl ok?
On 26 Apr 2001, Dave Hodgkinson wrote: As time goes on, these processes' memory usage grows and grows. Right now they're 20 MB (uptime 2 days). When I rebooted the machine two days ago, they were using 80 MB each (shared memory, though). MaxRequestsPerChild is set to 200. What operating system? Apache/1.3.12 (Unix) mod_perl/1.24 perl 5.005_03 Linux 2.2.14-5.0; Red Hat Linux release 6.2 (Zoot) I'd be inclined to stuff a lot more of the generic modules you use (CGI, Template Toolkit, URI, Date modules) into startup.pl. The more the merrier. Ok. I didn't think of that. If a process starts at 10M and grows to 80M that's 70M per process, _unshared_ for sure. Not good. I thought it was shared, because under top, SHARE was almost as big as RSS. -Philip Mak ([EMAIL PROTECTED])
Re: Is this startup.pl ok?
Philip Mak [EMAIL PROTECTED] writes: I thought it was shared, because under top, SHARE was almost as big as RSS. Before Stas starts laying into me for misleading inaccuracy, take a look at the guide: http://perl.apache.org/guide/ There's LOTS of good stuff in there on shareabiliy. If your processes start at 10M, then grow to 80M, that memory is probably _not_ shared. Unless you're mapping in some shared memory or something. -- Dave Hodgkinson, http://www.hodgkinson.org Editor-in-chief, The Highway Star http://www.deep-purple.com Interim CTO, web server farms, technical strategy