On Mon, Dec 10, 2001 at 06:27:07PM -0500, Vsevolod Ilyushchenko wrote:
> 
> 
> Perrin Harkins wrote:
> > 
> > > I looked at Memory Usage at my perl-status page and was horrified: the
> > > biggest modules are:
> > >
> > > File::Find                                   1205208 bytes |  2597 OPs
> > > Convert::ASN1::parser                        1058185 bytes |  3069 OPs
> > >
> > > However, if I go inside File::Find, I can't figure out what takes up so
> > > much space:
> > 
> > It could be internal structures holding the state.  Are you pre-loading this
> > module?  It probably doesn't really use 1MB in each process.
> 
> Perrin,
> 
> I do preload the module. How do I find out what it really uses?

Can you start your server without File::Find or Convert::ASN1::parser?
Assume that you have the following commented directive in your
httpd.conf file:

 #PerlModule File::Find

Start your httpd server and look at the memory usage.  In my case I
checked out /proc/PID/status on my linux box.  In this case it shows

  VmSize: 8036 kB

Next, uncomment out the directive line, restart and look at the memory
usage...  In my case it shows as:

  VmSize: 8380 kB

So, about 300k in this instance..  YMMV


-- 
Paul Lindner   [EMAIL PROTECTED]    ||||| | | | |  |  |  |   |   |

    mod_perl Developer's Cookbook   http://www.modperlcookbook.org
         Human Rights Declaration   http://www.unhchr.ch/udhr/index.htm

Reply via email to