Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
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
JSP - A mailing list about Java Server Pages specification and reference
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
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
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
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
mod_jk/2 load balance multiple tomcat servers problem

mod_jk/2 load balance multiple tomcat servers problem

2004-01-21       - By Joe Aiello

 Back
I have apache 2.0.43, Tomcat 4.1.24/Jboss 3.2.1 and using both mod_jk
1.2.5 and 2.02 (mod_jk/2 = seems to work the same on both 1.2 and 2.0).


-There is no tomcat on the apache server.
-I have 2 or more tomcat servers.
-Load balancing is working OK (as good as it mod_jk/2 balances).
- Tomcat is not clustered

Problem is when a worker leaves the network.  If the worker is the first
one in the list things are much worse (especially for session less
requests).  The mod_jk/2 tries a TCP connection to the first worker.  It
appears to try several times 8, 10, not sure. We must wait for this TCP
connection to time-out before making a connection to the next worker.
It appears to mark the server in "failed" mode for 10 - 15 seconds.  The
next request that comes in after that delay, mod_jk/2 tries to make the
send the request to the dead worker and the TCP connection must again
time-out before the worker is disabled for another 10 - 15 seconds.

Q.

- Is there a way to have mod_jk/2 keep the worker flagged as failed
until some sort of app-app message is successful?
- keep trying the TCP connection and keep the worker in flagged as
failed until the server responds to the TCP request (accepted or
rejected)?
- Is there some well known method to deal with a server that drops from
the network without manually removing the worker from the properties
file?
- Is there a way to change the length of time a server is considered
dead before sending a new connection to it?
- Another connector between Apache and Tomcat to use that does not
exhibit this behavior?

I have tried a large number of configuration changes for both mod_jk
1.2.x and 2.x as well as different mod_jk versions.

Thanks,

Joe Aiello

-- --Original Message-- --
From: Rick Szeto [mailto:rick.szeto@(protected)]
Sent: Wednesday, January 21, 2004 10:18 AM
To: Tomcat Users List
Subject: Quick context question.

Hi,
 Does Tomcat 5 allow starting, stopping and/or restarting of a context
without affecting the other contexts of the same webapp? Also, can a
context be stopped or restarted gracefully(ie keep running until all of
the sessions are dead)?

Thanks,
Rick Szeto

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)




-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)




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