top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Thread usage in Tomcat - currentThreadCount vs currentThreadBusy

+2 votes
1,187 views

I am working on Tomcat monitoring solution for a project and when it comes to monitoring 'Thread usage', I am wondering whether I should be comparing 'currentThreadCount' or 'currentThreadBusy' attribute against 'maxThread' to generate an alert.

Is currentThreadBusy the actual representation of the activeThread count ? If currentThreadCount increases when there is an increase in need of request processing threads and once the requests are processed, whether the currentThreadCount drops?

posted Aug 15, 2013 by Majula Joshi

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

+1 vote

Take a look at moskito: http://www.moskito.org.

answer Aug 15, 2013 by Abhay Kulkarni
+1 vote

I would go for "currentThreadBusy" because your thread count could == maxThread which just means that all potential threads have been allocated -- not that they are all busy at the same time.

answer Aug 15, 2013 by Sonu Jindal
Similar Questions
0 votes

When a request comes to tomcat and tomcat does not have any free thread available or all the threads are busy and request queue is also full then where I need to write the logic for redirect the request to some other server.

I have ConnectionRedirectionValve.java already written but in that file the request redirection logic is handled when threads are not sufficient at application level means application inside tomcat do not have any spare semaphore that is handled in this file.

Even though when tomcat does not have sufficient threads then I do not think the flow will move to ConnectionRedirectionValve.java So please suggest how to handle this

+2 votes

In part of ongoing investigations, i am evaluating the methods to setup the server side component of simple web-services, where there is a simple transfer of data.

In this regard, I am considering the following two options ::

a) Apache AXIS + SOAP

b) Apache Tomcat + Servlets

Which, in general, has a lower memory footprint, and consumes lesser resources in general?

...