in reply to A way to see how much 'memory' a program will take up in, say, mod_perl, so I can start to optimize it?
It sounds like you are asking to predict the memory that will be used by an application, right?
Is the application data driven? In other words, the data passed into an application can cause the size used to grow tremendously. As a simple example...
while (<>) { push(@lines, $_); }
--MidLifeXis
|
|---|