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 < > tomcat problem

Mod_JK < > tomcat problem

2004-02-05       - By Pepijn Palmans - Kangaroot

 Back
Hi there,

My 'first post' here.  hit reply with appropriate remarks if i'm on the
wrong list please :)

I'm having some troubles with the connection between Mod_JK and Tomcat.
After a while things go wrong.

FYI, I'm using:
- mod_jk-2.0.43.so
- jakarta-tomcat-4 (See http://cat-4.ora-code.com).1.29
- suse (SLES 8) linux kernel 2.4.19-64GB-SMP

I have a certain application running on this tomcat instance.  Problems
occur at random moments. (At least, I couldn't find a sequence in it).

Suddenly a certain httpd process starts taking heaps of memory.  With
that, it eats up a lot of CPU also.  It only takes what is available, my
machine doesn't crash on it.  I'm able to work further, but with huge
delays everywhere.

Analyses of this problem gave me this information:

- The httpd process was sending and receiving information on file
descriptor 10 (FD 10). (found out with strace)

- FD 10 is a socket with source localhost port 54500 and destination the
tomcat ajpv13 listener port (netstat -atpen, 54500 is not bound to any
interface/process)

- tcpdump on localhost showed me that there is continues traffic between
both the httpd/mod_jk and the tomcat server (ajpv13).  The traffic is
always the same.  A request from the container (AB|length|6 -> in ajpv13
this means "Get Body Chunk") and a reply from the server (1234|00|00 ->
this is an 'empty packet' telling there is nothing more to be sent).


MY QUESTION:

Why is Tomcat repeating it's request to send more 'body chunk(s)' if
there's nothing more to be sent ?  It's eating my cpu/mem and I have no
idea why.

I know, the first answer should be: monitor until problem happens, then
see for the last packet before this starts and you might have your
problem.  Unfortunately this website is having to much traffic to start
logging for hours and I have no idea when to start/stop monitoring since
it's all occuring at random moments.

Any ideas there out in the wild ?


Kind regards,

Pepijn Palmans
Managing Director

Kangaroot Linux Solutions
Grote Steenweg 91
2600 Berchem, Antwerpen
Tel: +32 3/286.17.17
Fax: +32 3/281.23.49
Email: pepijn@(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.