That is good thinking, but most of it does not apply since nothing
changed with my Apache or mod_jk installation during this move. They
both continue to sit on a Windows2000 box.

>From talking to someone else that had this issue, it looks like it might
have to do with the number threads that Tomcat has for AJP13 versus the
number of threads that Apache has. We currently have 250 Apache threads,
and 75 AJP13 threads, and with the move from RH8 (2.4.18 kernel) to
RHEL3.0 (and the new threading model, even with
LD_ASSUME_KERNEL==2.4.19), Tomcat can now exhaust all of those threads,
thus causing the sporadic point where mod_jk cannot connect to Tomcat.

This is a hypthosis, so I would love to hear other peoples opinons.

So, from it, looks like I could either set the LD_ASSUME_KERNEL to a
much older threading model (like 2.2.5) and have tomcat constrained in
the number of threads it can actually use, or increase the number of
tomcat threads to something more in line with apache.

-Andrew



-----Original Message-----
From: Adrian Lanning [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 16, 2004 5:18 PM
To: Tomcat Users List
Subject: Re: Sporadic connection loss between Tomcat and Apache though
mod_jk

I'm no expert in this by any means so here's some questions that might
help debugging your problem:

First, is tomcat actually restarting?  catalina.out logs are clean?

If tomcat's not restarting then is jk using some lib that was changed
between rh8 and enterprise?  Could try recompiling jk on the new system.
(course you might have already done that...)

could some other program be trying to use the port jk uses?  try
changing the port and retesting...

anything unusual about the times when it flakes out?  heavy load, etc...

i'd check jk_connect.c and see if you can find out more info on what
caused the error (61).  if it just can't open the socket (as its
reporting) then is it timing out or just getting refused?

Could a firewall difference in the new system mess something up?

i've reached the extent of my limited knowledge in this area. :-) hth,
Adrian Lanning

----- Original Message -----
From: "Clute, Andrew" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, March 16, 2004 4:39 PM
Subject: RE: Sporadic connection loss between Tomcat and Apache though
mod_jk


I should also mention we are on Apache 2.0.47

-Andrew



-----Original Message-----
From: Clute, Andrew [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 16, 2004 4:24 PM
To: [EMAIL PROTECTED]
Subject: Sporadic connection loss between Tomcat and Apache though
mod_jk

Ever since upgrading the box that our Tomcat server (actually
Jboss/Tomcat) resides on from RedHat 8.0 to RedHat Enterprise ES 3.0, we
will get very sporadic 500 errors on our JSP pages. When we get one of
the errors, if we refresh it right away, the page come back fine.

Mod_jk is set up, to the best of knowledge, correctly, as it worked
flawlessly for 12 months in production before we changed our production
java box (the apache box stayed the same -- nothing about it changed,
not even configuration files).

Pertinent information:

Uname -a = Linux WWW_JBOSS 2.4.21-9.0.1.ELsmp #1 SMP Mon Feb 9 22:26:51
EST 2004 i686 i686 i386 GNU/Linux

Java version:
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1) Classic
VM (build 1.4.1, J2RE 1.4.1 IBM build cxia321411-20030930 (JIT
enabled: jitc))

Jboss3.2.3 with Tomcat 4.1.29

Here is the output from the mod_jk.log file:

[Tue Mar 16 13:34:30 2004]  [jk_connect.c (203)]: jk_open_socket,
connect() failed errno = 61
[Tue Mar 16 13:34:30 2004]  [jk_ajp_common.c (676)]: Error connecting to
tomcat. Tomcat is probably not started or is listenning on the wrong
port. Failed errno = 61 [Tue Mar 16 13:34:30 2004]  [jk_ajp_common.c
(955)]: Error connecting to the Tomcat process.
[Tue Mar 16 13:34:30 2004]  [jk_ajp_common.c (1309)]: sending request to
tomcat failed in send loop. err=1 [Tue Mar 16 13:34:32 2004]
[jk_connect.c (203)]: jk_open_socket,
connect() failed errno = 61
[Tue Mar 16 13:34:32 2004]  [jk_ajp_common.c (676)]: Error connecting to
tomcat. Tomcat is probably not started or is listenning on the wrong
port. Failed errno = 61 [Tue Mar 16 13:34:32 2004]  [jk_ajp_common.c
(955)]: Error connecting to the Tomcat process.
[Tue Mar 16 13:34:32 2004]  [jk_ajp_common.c (1309)]: sending request to
tomcat failed in send loop. err=2 [Tue Mar 16 13:34:32 2004]
[jk_ajp_common.c (1318)]: Error connecting to tomcat. Tomcat is probably
not started or is listening on the wrong port. Failed errno = 61

Thanks for any help!

-Andrew





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to