You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Kaleb Pederson <kp...@mail.ewu.edu> on 2004/09/22 00:03:10 UTC

mod jk2/tomcat communication problem

I'm having some problems with apache and tomcat losing communication.  I have 
mod_jk2 setup using tomcat as an out-of-process server.

When apache loses communication with tomcat (even though tomcat is running and 
can be reached on port 8080 without problem), apache starts spawning 
processes, each of which slows the machine down and compounds the problem.

These error messages show up in the logs when this happens:

[Tue Sep 21 13:09:28 2004] [error] ajp13.service() ajpGetReply recoverable 
error 3
[Tue Sep 21 13:09:28 2004] [error] ajp13.service() Error  forwarding 
ajp13:localhost:8009 1 0
[Tue Sep 21 13:09:28 2004] [error] mod_jk2.handler() Error connecting to 
tomcat 3, status 200
...
and sometimes I'll get the following, although rarely
...
[Tue Sep 21 11:33:54 2004] [error] channelApr.receive(): Bad header
[Tue Sep 21 11:33:54 2004] [error] workerEnv.processCallbacks() Error reading 
reply
[Tue Sep 21 11:33:54 2004] [error] ajp13.service() ajpGetReply recoverable 
error 120000
[Tue Sep 21 11:33:54 2004] [error] ajp13.service() ajpGetReply recoverable 
error 120000
[Tue Sep 21 11:33:54 2004] [error] msgAjp.receive(): Bad signature 00

Any ideas what I can do to resolve this problem?

Thanks.

--Kaleb

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: mod jk2/tomcat communication problem

Posted by Kaleb Pederson <kp...@mail.ewu.edu>.
Alex, thanks for the response.

I didn't try telnetting to port 8009, but will next time it goes down (I wish 
I could say *if* it goes down again :( ).  I did nmap the box at that time, 
and it showed that the port was open.

I'm going to try to switch to Unix sockets soon as well, as I hope that might 
fix the problem, but I'm not sure if that disallows me from using the load 
balancing (which I haven't setup yet as I don't have a backup machine) in the 
future or if I just have to reconfigure it so that the other channel uses the 
socket based connection?

Thanks for the help.

--Kaleb

On Wednesday 22 September 2004 8:04 am, Alex wrote:
> kaleb, can you telnet to the tomcat connector port?  8009 is the default.
>
> On Tue, 21 Sep 2004, Kaleb Pederson wrote:
> > Date: Tue, 21 Sep 2004 15:03:10 -0700
> > From: Kaleb Pederson <kp...@mail.ewu.edu>
> > Reply-To: Tomcat Users List <to...@jakarta.apache.org>
> > To: Tomcat Users List <to...@jakarta.apache.org>
> > Subject: mod jk2/tomcat communication problem
> >
> > I'm having some problems with apache and tomcat losing communication.  I
> > have mod_jk2 setup using tomcat as an out-of-process server.
> >
> > When apache loses communication with tomcat (even though tomcat is
> > running and can be reached on port 8080 without problem), apache starts
> > spawning processes, each of which slows the machine down and compounds
> > the problem.
> >
> > These error messages show up in the logs when this happens:
> >
> > [Tue Sep 21 13:09:28 2004] [error] ajp13.service() ajpGetReply
> > recoverable error 3
> > [Tue Sep 21 13:09:28 2004] [error] ajp13.service() Error  forwarding
> > ajp13:localhost:8009 1 0
> > [Tue Sep 21 13:09:28 2004] [error] mod_jk2.handler() Error connecting to
> > tomcat 3, status 200
> > ...
> > and sometimes I'll get the following, although rarely
> > ...
> > [Tue Sep 21 11:33:54 2004] [error] channelApr.receive(): Bad header
> > [Tue Sep 21 11:33:54 2004] [error] workerEnv.processCallbacks() Error
> > reading reply
> > [Tue Sep 21 11:33:54 2004] [error] ajp13.service() ajpGetReply
> > recoverable error 120000
> > [Tue Sep 21 11:33:54 2004] [error] ajp13.service() ajpGetReply
> > recoverable error 120000
> > [Tue Sep 21 11:33:54 2004] [error] msgAjp.receive(): Bad signature 00
> >
> > Any ideas what I can do to resolve this problem?
> >
> > Thanks.
> >
> > --Kaleb
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: mod jk2/tomcat communication problem

Posted by Alex <al...@squigly.net>.
kaleb, can you telnet to the tomcat connector port?  8009 is the default.

On Tue, 21 Sep 2004, Kaleb Pederson wrote:

> Date: Tue, 21 Sep 2004 15:03:10 -0700
> From: Kaleb Pederson <kp...@mail.ewu.edu>
> Reply-To: Tomcat Users List <to...@jakarta.apache.org>
> To: Tomcat Users List <to...@jakarta.apache.org>
> Subject: mod jk2/tomcat communication problem
>
> I'm having some problems with apache and tomcat losing communication.  I have
> mod_jk2 setup using tomcat as an out-of-process server.
>
> When apache loses communication with tomcat (even though tomcat is running and
> can be reached on port 8080 without problem), apache starts spawning
> processes, each of which slows the machine down and compounds the problem.
>
> These error messages show up in the logs when this happens:
>
> [Tue Sep 21 13:09:28 2004] [error] ajp13.service() ajpGetReply recoverable
> error 3
> [Tue Sep 21 13:09:28 2004] [error] ajp13.service() Error  forwarding
> ajp13:localhost:8009 1 0
> [Tue Sep 21 13:09:28 2004] [error] mod_jk2.handler() Error connecting to
> tomcat 3, status 200
> ...
> and sometimes I'll get the following, although rarely
> ...
> [Tue Sep 21 11:33:54 2004] [error] channelApr.receive(): Bad header
> [Tue Sep 21 11:33:54 2004] [error] workerEnv.processCallbacks() Error reading
> reply
> [Tue Sep 21 11:33:54 2004] [error] ajp13.service() ajpGetReply recoverable
> error 120000
> [Tue Sep 21 11:33:54 2004] [error] ajp13.service() ajpGetReply recoverable
> error 120000
> [Tue Sep 21 11:33:54 2004] [error] msgAjp.receive(): Bad signature 00
>
> Any ideas what I can do to resolve this problem?
>
> Thanks.
>
> --Kaleb


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org