ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> modperl
modperl
Memory usage on reload and graceful -- still broken?
by Paul Lindner other posts by this author
Apr 20 2000 1:09AM messages near this date
Re: [RFC] Do Not Run Everything on One mod_perl Server | Re: Memory usage on reload and graceful -- still broken?
Hello mod_perl'ers.

I don't know if it's just me, but I'm having problems with growing
memory reallocation on a HUP or graceful (USR1) restart.  I've looked
through the mailing list archives and the wonderful guide, but have
come up short of answers.

First off, the config:

  Red Hat apache 1.3.12 rpm with mod_perl 1.22 (same spec file as used
  for 1.21 rpm) Very simple configs..  PerlFreshRestart is off.  No
  weirdness in the error logs, etc.

Now, on to the numbers.  I started a server with a clean config and
slowly added the perl configs, and came up with the following memory
analysis.

No perl configs (numbers are actual/shared memory usage, hup by hup)

  3588/2228 ->  3636/2284 -> 3680/2324 -> 3724/2364 -> 3768/2404 -> 3812/2444

Adding a (very) small Apache::Registry section results in:

  4332/3024 ->  4732/3436 -> 5132/3832 -> 5528/4228 -> 5928/4624 -> 6328/5020

Adding the Apache::ASP section to the server

  7608/6312 ->  9596/8300 ->  11472/10196

Adding a fairly complete startup.pl:

 20112/18468 ->  26296/24640 -> 32480/30808


Let's look at the slimmed down case (c1), the deltas are:
  48 44 44 44 44

Now c2:
  400 400 396 400 400

Ah, linear.

A quick calculation reveals that the amount of non-shared memory
remains constant.

The amount of memory increase seems to be in proportion to the initial
size of the process too.  Seems to me that the process is not freeing
memory as it reinitializes.

Has anyone found a work around?  Please don't ask me to ditch the DSO..

-- 
Paul Lindner
plindner@[...].com
Red Hat Inc.
Thread:
Paul Lindner
Doug MacEachern
Joshua Chamas
Doug MacEachern
Douglas Leonard
Paul Lindner
Joshua Chamas
Doug MacEachern
Paul Lindner
G.W. Haywood

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved