[SNMP4J] heapmemory error in polling
Frank Fock
fock at agentpp.com
Wed Sep 26 18:47:35 CEST 2007
Hi Mansi,
I would guess that you have a memory leak in your code...
Best regards,
Frank
Manaswini Dash wrote:
> 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.
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j
--
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com
More information about the SNMP4J
mailing list