The following module was proposed for inclusion in the Module List:
modid: Tie::MemoryUsage DSLIP: adprp description: Monitor the memory usage of your perl script userid: OESTERHOL (Hans Dijkema) chapterid: 4 (Operating_System_Interfaces) communities: ? similar: rationale: On AIX the memory limit of any program is 256Mb. On a large messaging system, we have a perl script to get very fast access to data in an LDAP server. This perl script uses a cache that can grow and grow and grow... (Cache::Cache). To limit this cache occasionally, we monitor the memory usage of the perl script, because limiting it every hour or so can cause the perl proces size to go beyond the 256Mb limit; and limiting the cache size te often will press on the performance too much. The module does an asynchronous request of the PS table and gets the size in KB. Every 30 seconds (default) ps vax is executed (AIX). It works with a select() statement and a forked() pipe to itself. enteredby: OESTERHOL (Hans Dijkema) enteredon: Sat Mar 23 10:06:03 2002 GMT The resulting entry would be: Tie:: ::MemoryUsage adprp Monitor the memory usage of your perl script OESTERHOL Thanks for registering, The Pause Team PS: The following links are only valid for module list maintainers: Registration form with editing capabilities: https://pause.perl.org/pause/authenquery?ACTION=add_mod&USERID=bf000000_852ebfd979cc5fa6&SUBMIT_pause99_add_mod_preview=1 Immediate (one click) registration: https://pause.perl.org/pause/authenquery?ACTION=add_mod&USERID=bf000000_852ebfd979cc5fa6&SUBMIT_pause99_add_mod_insertit=1