[Omaha.pm] Self monitoring a perl scripts memory usage...

Jay Hannah jay at jays.net
Sat Oct 31 07:10:44 PDT 2009


On Oct 28, 2009, at 2:10 PM, Dan Linder wrote:
On Wed, Oct 21, 2009 at 15:40, Jay Hannah <jay at jays.net> wrote:
>> Wow. That's a big process.  :)  You have to have all that in memory  
>> all at
>> once? Can you cache out some of it or something? (Cache::FileCache?)
>
> The script is building up a large hash table in RAM which is then
> dumped to a text file when it finishes.  In this exact instance, the
> system is expanding user/group entries that were dumped from a Windows
> domain controller.  Since the domain is very dynamic, the actual RAM
> requirements change day-to-day so it doesn't fail every day.

As you process each user/group you can't Cache::FileCache it or shove  
it into a database or something?

j



More information about the Omaha-pm mailing list