Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
-none-

-none-

2007-09-06       - By Henk Fictorie

 Back

Hi,

We are using mod_jk 1.2.21 on Solaris 8. together Apache 2.0.59 with the
worker MPM.
We are moving our applicationserver to a new version which is also using a
new Tomcat version. We now have a split application which is using both
Tomcat 5.0 and the other part is using Tomcat 5.5. For tomcat 5.5 we set the
connectionTimeout to 10 minutes, for 5.0 it is set to 0 (infinite)

For Tomcat 5.0 we see lots more ESTABLISHED connections than for Tomcat 5.5.
While I expected it to be the same.
For the Tomcat 5.0 connections we do not see any errors (except for client
errors).
For the Tomcat 5.5 connections we see errors occuring, claiming that it
cannot connect to Tomcat:

[Thu Sep 06 09:17:15 2007] [2735:0061] [info]
ajp_send_request::jk_ajp_common.c (1215): dummy) error sending request. Will
try another pooled connection
[Thu Sep 06 09:17:15 2007] [2735:0061] [info]
ajp_send_request::jk_ajp_common.c (1241): (dummy) all endpoints are
disconnected
[Thu Sep 06 09:17:15 2007] [2735:0061] [info]
ajp_send_request::jk_ajp_common.c (1244): (dummy) increase the backend idle
connection timeout or the connection_pool_minsize
[Thu Sep 06 09:17:15 2007] [2735:0061] [info]  ajp_service::jk_ajp_common.c
(1930): (dummy) sending request to tomcat failed,  recoverable operation
attempt=1
[Thu Sep 06 09:17:15 2007] [2735:0061] [error] ajp_service::jk_ajp_common.c
(1942): (dummy) Connecting to tomcat failed. Tomcat is probably not started
or is listening on the wrong port
[Thu Sep 06 09:17:15 2007] [2735:0061] [info]  service::jk_lb_worker.c
(1023): service failed, worker dummy is in error state


On the mod_jk side of things we use the same settings for both applications:

worker.maintain=60

# worker template
worker.template.type=ajp13
worker.template.port=xxxx
worker.template.lbfactor=50
worker.template.connection_pool_timeout=600
worker.template.socket_timeout=62
worker.template.connect_timeout=30000
worker.template.prepost_timeout=30000
worker.template.recovery_options=0
worker.template.reply_timeout=600000
worker.template.retries=1


On the tomcat 5.0 side the connectionTimeout is set to 0 (infinite)

   <Connector className="org.apache.coyote.tomcat5.CoyoteConnector"
              port="xxxx"  minProcessors="5" maxProcessors="500"
              acceptCount="10" debug="0" enableLookups="true"
redirectPort="8443"
               connectionTimeout="0" useURIValidationHack="false"
             
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler" />


On the tomcat 5.5 site the connectionTimeout is set to 10 minutes:

   <Connector port="xxxx" address="a.b.c.d" enableLookups="false"
emptySessionPath="true"
       minSpareThreads="20" maxThreads="750" acceptCount="10"
connectionTimeout="600000"
       redirectPort="8443" debug="0" protocol="AJP/1.3" />

So, on the timeout settings for Tomcat 5.5 I am using the recommended values
described in the 'timeouts howto' section.
The info messages suggest that I should increase the connectionTimeout on
the Tomcat side. Probably to some value > (connection_pool_timeout +
worker.maintain)??
Or should I set the connection_pool_minsize to match the minSpareThreads??
Or upgrade to mod_jk 1.2.25??

Advice is welcome.

regards Henk Fictorie

--
View this message in context: http://www.nabble.com/mod_jk---connectionTimeout
-en-connection_pool_timeout-tf4390617.html#a12518264
Sent from the Tomcat - User mailing list archive at Nabble.com.


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.