Hi Justin > > I'm wondering if anyone can advise me on how I could go about trying > to understand where this 90 Mbs is comming from? Some of it must be > the mod_perl and apache binaries - but how much should they be, and > apart from the 6mb in shared memory for my pre-loaded modules, where > is it all comming from?
You don't mention what platform you are on, but if it is linux, then check out this blog http://bmaurer.blogspot.com/2006/03/memory-usage-with-smaps.html and specifically this script http://www.contrib.andrew.cmu.edu/%7Ebmaurer/memory/smem.pl which will give you a much more accurate idea about how much memory is shared and where it is being used. As Perrin said, Perl data and code both go on the heap, so you won't be able to separate those two out with this tool, but combining smem.pl with loading modules one by one will get you a long way to a diagnosis. clint