tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "a" <>
Subject Re: how to monitor the traffic through the connector
Date Mon, 01 Apr 2013 17:40:47 GMT

Thank you for reply.
The servlet of the web application does not response to the request after 
running serveral months. The problem can be solved by restarting the tomcat. 
I want to troubleshoot by monitoring the number of avaliable threads or 
occupied threads.

Thank you

"Daniel Mikusa" <> wrote in message
On Mar 26, 2013, at 6:32 PM, a wrote:

> Hi,
> I have defined a connector for port80. For example,
>    <Connector port="80"
>               maxThreads="150"
>               minSpareThreads="25"
>               maxSpareThreads="75"
>               enableLookups="false"
>               acceptCount="100"
>               debug="0"
>               connectionTimeout="2000"
>               disableUploadTimeout="true"
>               compression="on"
>               address=""/>
> Is there any way to monitor the statistics that get throught the port?

No idea what you mean by this.  Can you elaborate?

> I need to log when the requst is fail,

Do you have an access log valve setup?  That will log the HTTP status code. 
You can grep for 500 to get the errors.

> and I need to know the number of
> threads is consumed when the request is fail.

The access log valve can tell you the thread name of the thread that handled 
your request with the "%I" option.  I'm not sure there's an easy way to get 
the total threads in use at the time a request fails though.  What is your 
rationale for needing this information?


> Thanks
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message