[SNMP4J] Snmp Async Thread Pool

Frank Fock fock at agentpp.com
Mon Jul 16 19:00:27 CEST 2007


Hi Ryan,

Snmp does not use any ThreadPool so I think your
problem is caused by the application not the
SNMP4J API.

Best regards,
Frank

Smith, Ryan wrote:
>  
>  
> Hello,
>  
> When I try to send 100 PDU() objects via the .send() or .inform()
> methods (async) I see that a thread pool of up to 10 threads are
> created.
>  
> When my program is finished running, the main thread ends, but the
> threads in the thread pool remain running, (all 10) causing the
> application to hang (not exit).  I'm calling: ((Snmp)
> event.getSource()).cancel(event.getRequest(), this) in the callback
> method.
> I configure the snmp class to timeout sends after 5 seconds and retry 3
> times before giving up.
>  
> Now, the snmp Manager I'm trying to send to is on udp:192.0.1.123:162  -
> This machine doesn't exist.  So the host is unreachable and all the
> requests timeout,  the only problem is that the threads aren't dying as
> I expect they should.  I'm not sure what else I'm missing here,
> any ideas?
>  
> Thank you,
> -Ryan
> _______________________________________________
> 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