if you must, which NOT the preferred option, then you can use SNMP module to get at the required MIB values. You should do it in a loop, hopefully the loop that actually chews up the memory. Why don't you post up the code that's chewing the memory so badly? Does it have a memory leak?..or could it be re-written?