[SNMP4J] SNMPv3 Resend after report -> MPv3 cache GC'd

Frank Fock fock at agentpp.com
Fri Aug 18 15:44:51 CEST 2006


Hi Terje,

What version of SNMP4J are you using? Isn't this fixed
in version 1.7.3?

Best regards,
Frank

Terje MegÄrd wrote:
> Hi Frank,
> 
> The sendPdu method in the MessageDispatcherImpl creates a new
> PduHandle when resending a message after report and this PduHandle is
> used as a key in the WeakHashMap of the MPv3 cache. We have seen that
> the PduHandle is GC'd in the WeakHashMap because there is no other
> reference to it. The associated PduHandle in the pendingRequests
> HashTable of the Snmp object is a different instance, but with the
> same transactionID.
> 
> This is the same problem as reported by Fridjof Berlin.
> 
> The problem occurs frequently on fast computers and slow networks.
> 
> If I use Hashtable instead of WeakHashMap the problem disappears, but
> I am not sure if it is safe to do so. Perhaps better to get hold of
> the PduHandle from the pendingRequests, but it does not seem trivial.
> 
> 
> Best regards
> Terje
> _______________________________________________
> 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