[SNMP4J] Protocol mismatch (or socket errors in general) lead to many connection attempts using snmp4j 1.10.2

Warren Cooper warren.cooper at softwareag.com
Mon Dec 28 15:57:42 CET 2009


If there is a connection problem between an SNMP agent configured to 
send TCP  in its attempt to send events to an SNMP server, and there is 
a problem making a connection, many attempts to send the events will 
fail.  ( It's a problem because the pending list (member in 
DefaultTCPTransportMapping) will continue to grow.

To see the problem, configure an SNMP client to send 40 events over TCP 
to a SNMP server expecting UDP.
(But this problem would happen in any case where  if 
(entry.getSocket().isConnected()) ) check in processPending() is not true.
As you know, this is a serious problem since CPU resources are impacted 
and memory could eventually be exhausted if the problem continues for 
over an extended period of time and enough events are written to the 
'pending' list object instance.

thanks



More information about the SNMP4J mailing list