[SNMP4J] heapmemory error in polling

Manaswini Dash dashmanaswini at gmail.com
Wed Sep 26 15:03:39 CEST 2007


Hi frank
 Recently I used snmp4j api. I also wrote a get operation and it is working
properly.

For monitoring a device for 3 second  I have done like this :

for(int i=0; ; i++)
{
    //  some code

this.getSnmpMessage(IP,community, oidList);

// some other code

Thread.sleep(3000);
}


here I specified the time as 3 second.
And it also running successfully. But after 10-20 minutes I alway getting an
heap memory error.

So I confuse, whether there are any other procedure for polling a device or
what ?

Can you please give me any idea.

hope for a positive reply..

regards
mansi.



More information about the SNMP4J mailing list