in reply to Building a small perl
You're not giving us a lot of details to work with here, but here's a few random suggestions. First, turn off caching - lots of modules support caching data and you don't want them to do that if memory is scarce. Second, switch to straight CGI if you're using mod_perl - mod_perl is fast because it keeps your app in memory, but you don't want that. CGI will immediately release all memory used by a script as soon as it returns results. Finally, look critically at which modules are being used and make sure you really need them. Having a Project::All module with use statements for all your CPAN modules is very convenient but it will kill your memory usage if you're running a script that only needs a few deps.
If you want more useful advice you'll have to give us more information - what does the app do, what CPAN modules does it use, does it leak memory, etc.
-sam
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Building a small perl
by awy (Acolyte) on Mar 21, 2009 at 19:47 UTC | |
by syphilis (Archbishop) on Mar 21, 2009 at 23:09 UTC |