[SNMP4J] DefaultTcpTransportMapping goes into a blocked state

Riyaz, Mohamed Mohamed.Riyaz at softwareag.com
Thu Nov 13 14:21:18 CET 2008


Hi,

 

I am using SNMP4J for writing a SNMPListener which receives SNMPV3
Traps.

 

The following is my configuration:

 

Transport                                               : TCP

Number of TrapSenders                          : 1

Sleep interval between traps                    : 100 Milliseconds

DispatcherPoolSize on Listener               : 10

TransportMapping on Sender & Listener   : DefaultTcpTransportMapping

Operating System                                  : Windows XP

 

When I send a large number of Traps the Listener goes into a block state
after say receiving 500 - 700 traps. The blocking happens at the
following line inside DefaultTcpTransportMapping$ServerThread.run()
method, selector.select(). Can you please provide some pointers on what
could be the reason? Is this because the number of connections getting
maxed out? 

 

I see the Selector provides a select() method with a timeout parameter.
Is there any specific reason that the call is used without timeout?

 

Thanks & Regards

Riyaz




More information about the SNMP4J mailing list