How can I optimize memory usage under mod_perl?
This has two facets. First, to optimize memory usage with Alzabo’s schema creator, simply preload all modules that it uses in the parent server. These are: • Alzabo::Create • Apache::Constants • Graphviz This module is optional so don’t worry if you don’t have it. • HTTP::BrowserDetect • URI • URI::Escape If you want to optimize memory usage for Alzabo when using it as an RDBMS-OO mapper, you should simply preload the Alzabo::Runtime module (which loads all the other modules it needs). In addition, if you are using Alzabo::MethodMaker, make sure it runs in the parent. This module can create a lot of methods on the fly. Each new method eats up some memory. Finally, you can preload one or more schema objects.