Monitoring use of Netty thread pools

David Bower david.bower at alertme.com
Tue May 17 11:00:00 EDT 2011


Hello,

 

I'm trying to diagnose some bottlenecks in a Netty-based server and I'd like
to be able to monitor the thread pool usage to see if I'm setting reasonable
values for the NioServerSocketChannelFactory and
OrderedMemoryAwareThreadPoolExecutor so I might determine if Netty is
waiting on any resources/running out of threads.

 

Is there anything available in the Netty code itself which might help me do
this (I saw some JMX additions on the roadmap for Netty 4, but nothing in
3)?

 

If there's nothing in the Netty codebase I'm considering using aspects with
JAMon to monitor the numbers of threads in use/idle, however I'm not sure
exactly which methods I should be monitoring for this information. Could
anyone help pinpoint methods (maybe NioClientSocketPipelineSink,
NioServerSocketChannelFactory or OrderedMemoryAwareThreadPoolExecutor) which
I can intercept the calls to or count the invocations of to determine the
number of threads in use at a particular time and even how long a particular
request has taken to be serviced?

 

Thanks

 

Dave

 

David Bower 

Senior Java Developer   

AlertMe.com Ltd.

Email:  <mailto:jody.haskayne at alertme.com> david.bower at alertme.com

 AlertMe_logo_RGB_HiRes_2

You can visit our main website at  <http://www.alertme.com/>
www.alertme.com. 

Follow us on Twitter at  <http://www.alertme.com/twitter>
www.alertme.com/twitter and Facebook at  <http://www.alertme.com/facebook>
www.alertme.com/facebook

________________________________________________________________________

This email is for the use of the intended recipient(s) only. If you have
received this email in error, please notify the sender immediately and then
delete it. If you are not the intended recipient, you must not use, disclose
or distribute this email without the author's prior permission. AlertMe.com
Ltd. is not responsible for any personal views expressed in this message or
any attachments that are those of the individual sender.

 

AlertMe.com Ltd, Compass House, 80 Newmarket Road, Cambridge, CB5 8DZ, UK. 

Registered in England, Company number 578 2908, VAT registration number GB
895 9914 42.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/netty-users/attachments/20110517/1ae0ada2/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 1167 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/netty-users/attachments/20110517/1ae0ada2/attachment.jpe 


More information about the netty-users mailing list