HTTPd.conf : 
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 30 

<IfModule worker.c>
ThreadLimit        512
StartServers       100 
MaxClients         512 
MinSpareThreads    129 
MaxSpareThreads    256 
ThreadsPerChild    256 
MaxRequestsPerChild  0
</IfModule>

Workers.properties: 
njipuplmapp01:/opt/hpws/apache/conf#>cat workers.properties
ps=/
workers.tomcat_home=/coach/app/ptc/tomcat1
worker.list=ajp13App11,ajp13App12,loadbalancer,mystatus
worker.ajp13App11.port=8010
worker.ajp13App11.host=localhost
worker.ajp13App11.type=ajp13
worker.ajp13App11.lbfactor=1
worker.ajp13App11.cache_timeout=900
worker.ajp13App11.socket_timeout=0
worker.ajp13App11.retries=3
worker.ajp13App11.recycle_timeout=900

worker.ajp13App12.port=8011
worker.ajp13App12.host=localhost
worker.ajp13App12.type=ajp13
worker.ajp13App12.lbfactor=1
worker.ajp13App12.cache_timeout=900
worker.ajp13App12.socket_timeout=0
worker.ajp13App12.retries=3
worker.ajp13App12.recycle_timeout=900

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13App11,ajp13App12
worker.loadbalancer.method=Request
worker.loadbalancer.sticky_session=true

worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
worker.inprocess.cmd_line=start
worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr

worker.mystatus.type=status
worker.mystatus.mount=/admin/status/jk

mod_jk 
# Configure mod_jk for basic operation
<IfModule mod_jk.c>
  JkWorkersFile conf/workers.properties
  JkLogFile logs/mod_jk.log
  JkLogLevel info
  JkShmFile logs/JkShmFile.log
  
  # Must use this for proper % escaping (cannot use with Tomcat 3.2.x)
  JkOptions +ForwardURIEscaped
  # Uncomment the line below once HP builds with mod_jk 1.2.13 or
  # higher to ensure that the 'X-Do-not-compress-this' header
  # behaves as expected.
  #JkOptions +FlushPackets
  
  # Mount all JSP pages with our default worker
  JkMount /*.jsp loadbalancer
  JkMount /*.jsp/* loadbalancer
</IfModule>

Connector :
    <Connector acceptCount="100" connectionTimeout="20000" 
disableUploadTimeout="true" port="8082" redirectPort="8445" 
maxSpareThreads="75" maxThreads="150" minSpareThreads="25">
    </Connector>
    <Connector URIEncoding="UTF-8" acceptCount="100" debug="1" port="8012" 
protocol="AJP/1.3" 
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler" 
redirectPort="8445" tomcatAuthentication="false" useBodyEncodingForURI="true">
    </Connector>


________________________________
From: Christopher Schultz <ch...@christopherschultz.net>
To: Tomcat Users List <users@tomcat.apache.org>
Sent: Monday, May 18, 2009 12:18:22 PM
Subject: Re: Tomcat not closing threads

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chetan,

On 5/18/2009 10:43 AM, Chetan Chheda wrote:
> Our network team is already engaged and looking into this. We had
> several instances of tomcats locking up today. I have attached one such
> thread dump here ..

It looks like all your request processors are waiting for data to be
read from the client. Can you post your current:

workers.properties
httpd.conf (portions relevant to the worker MPM and mod_jk)
<Connector>

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkoRik4ACgkQ9CaO5/Lv0PDktACfZRY7Eu5R/0nvnyGdOiXD2tID
9RQAoKCgluYtV8ht5/DAvWc1nP4b+yeQ
=UycA
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


      

Reply via email to