[LON-CAPA-dev] Interactive Memory Exploration

Guy Albertelli II lon-capa-dev@mail.lon-capa.org
Fri, 20 Sep 2002 14:24:18 -0400 (EDT)


Hi All,

By popular demand, how to find out where your mod_perl script's memory
has gone to:


You will need the B-Size and Devel-Symdump CPAN modules

Add to httpd.conf

PerlModule B::TerseSize
PerlModule Apache::Status

<Location /perl-status>
  SetHandler perl-script
  PerlHandler Apache::Status
  PerlSetVar StatusTerse On
  PerlSetVar StatusTerseSize On
  PerlSetVar StatusTerseSizeMainSummary On
  PerlSetVar StatusDumper On
  PerlSetVar StatusPeek On
  Order Deny,Allow
  Deny from All
  Allow from localhost
</Location>

and localhost/perl-status will ave a nice browsable view of where
memory is currently being used.

You might want to use the -X option.

-- 
guy@albertelli.com          BM: n^20 t20 z20 qS 
Guy Albertelli -7-8-3-  O-
    Today I will rely on the language of love and understanding. 
    If that doesn't work, I'll go back to intimidation and fear.