<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Raavi;
        panose-1:2 11 5 2 4 2 4 2 2 3;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="2050" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hello,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>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.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>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)?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>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?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Dave<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Raavi","sans-serif";color:black'>David Bower</span></b><span style='font-size:9.0pt;font-family:"Raavi","sans-serif";color:black'> <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Raavi","sans-serif";color:black'>Senior Java Developer <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Raavi","sans-serif";color:black'>AlertMe.com Ltd.<b><o:p></o:p></b></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Raavi","sans-serif";color:black'>Email: </span><span style='font-size:9.0pt;font-family:"Raavi","sans-serif"'><a href="mailto:jody.haskayne@alertme.com"><span style='color:blue'>david.bower@alertme.com</span></a><span style='color:black'><o:p></o:p></span></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Raavi","sans-serif";color:black'> <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Raavi","sans-serif";color:black'> <img border=0 width=52 height=42 id="Picture_x0020_1" src="cid:image001.jpg@01CC14A9.48E1AE00" alt="AlertMe_logo_RGB_HiRes_2"><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Raavi","sans-serif";color:black'>You can visit our main website at <a href="http://www.alertme.com/"><span style='color:blue'>www.alertme.com</span></a>. <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Raavi","sans-serif";color:black'>Follow us on Twitter at <a href="http://www.alertme.com/twitter"><span style='color:blue'>www.alertme.com/twitter</span></a> and Facebook at <a href="http://www.alertme.com/facebook"><span style='color:blue'>www.alertme.com/facebook</span></a><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Raavi","sans-serif";color:black'>________________________________________________________________________<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Raavi","sans-serif";color:black'>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.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Raavi","sans-serif";color:black'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Raavi","sans-serif";color:black'>AlertMe.com Ltd, Compass House, 80 Newmarket Road, Cambridge, CB5 8DZ, UK. <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt;font-family:"Raavi","sans-serif";color:black'>Registered in England, Company number 578 2908, VAT registration number GB 895 9914 42.<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>