Vicky, On 12/21/15 3:12 PM, Vicky wrote: > I am using an embedded version of Tomcat 7.0.42. Using java executor with > either of the connectors i.e. BIO/NIO. > > However while monitoring the server via JMX, I see the mbean attributes, > > currentThreadCount > > currentThreadsBusy > > always showing the value "-1". > > The only one that shows the appropriate dynamic value is connection count, > which seems to match the count of the client threads that I initiate. > > Any idea how to get currentThreadCount and currentThreadsBusy to show the > right values?
Are you registering the executor MBean with the JMX server? Tomcat will auto-register the <Executors> in server.xml when running non-embedded, but I'm not sure it will auto-register them if you programmatically add Executors in an embedded environment. -chris --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org