tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Wertheim>
Subject Re: help analyzing thread dump for Tomcat 7.0.23 issue
Date Sat, 31 Dec 2011 16:13:47 GMT
I'm using the APR Connector.

Here's my server.xml:

<?xml version='1.0' encoding='utf-8'?>
<Server port="8005" shutdown="SHUTDOWN">

  <Listener className="org.apache.catalina.core.AprLifecycleListener"
SSLEngine="on" />
  <Listener className="org.apache.catalina.core.JasperListener" />
  <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"

    <Resource name="UserDatabase" auth="Container"
              description="User database that can be updated and saved"
              pathname="conf/tomcat-users.xml" />
    <Resource name="mail/Session" auth="Container"

  <Service name="Catalina">
    <Connector port="8080" protocol="HTTP/1.1" URIEncoding="utf-8"
		maxKeepAliveRequests="3" keepAliveTimeout="3000"
		redirectPort="8443" />

    <Connector port="8443" URIEncoding="utf-8"
		maxKeepAliveRequests="3" keepAliveTimeout="3000"
		scheme="https" secure="true" SSLEnabled="true"
		clientAuth="false" sslProtocol="TLS"/>

    <Engine name="Catalina" defaultHost="localhost">
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
      <Host name="localhost"  appBase="webapps" unpackWARs="true"
		<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="localhost_access_log." suffix=".txt"
pattern="%I %t %U %T" resolveHosts="false"/>

On Sat, Dec 31, 2011 at 5:39 AM, Pid <> wrote:
> On 30/12/2011 02:01, Mike Wertheim wrote:
>> I have an app that runs on Tomcat 7.0.21 and APR 1.4.7 just fine.  The
>> app serves both SSL and non-SSL traffic.  SSL traffic makes up roughly
>> 1% of the overall traffic.  The Connectors for SSL and non-SSL both
>> use the default value (200) for maxThreads.
>> When I try to run the app on Tomcat 7.0.23 (with the same server.xml,
>> context.xml and web.xml) and APR 1.4.7, the app slowly grinds to a
>> halt after running on a live production server for about a day.
>> I took heap dumps of the app on both 7.0.21 and 7.0.23 and don't see
>> any significant difference in memory usage.  Memory seems to be fine.
>> I did a stack dump on 7.0.23 when it was in its messed up state.  No
>> threads are blocked on critical sections of my app.
>> For the port 8080 connector, there are 196 threads in "waiting on
>> condition" and 4 threads in "runnable".
>> For the port 8443 connector, there are 81 threads in "waiting on
>> condition" and 119 threads in "runnable".
>> I don't know how to interpret this data, since I'm not really clear on
>> what the difference is between "runnable" and "waiting on condition".
>> Do these numbers seem normal, or are they perhaps giving a clue as to
>> what the underlying problem might be?
> Which Connector are you using?
> Can you please remove the XML comments and obscure username/password/ip
> addresses if applicable in your server.xml and then post it inline here?
> p
> --
> [key:62590808]

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

View raw message