tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Tomcat Executor MBean
Date Tue, 22 Dec 2015 23:11:14 GMT
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message