You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Hartwig, Thomas" <t....@crapoud.com> on 2003/05/08 12:30:50 UTC

seldom errors tomcat apache connection

I use a servlet in an Apache 2.0.40->jk2->Tomcat 4.1.24 environment.
In one out of about 100 requests there seem to be difficulties 
connecting the tomcat engine. The error occure in the apache error log.
The catalina logfiles don't report anything useful even with debug level 
10 in the context configuration. The apache server raises a internal 
server error then:

[Thu May 08 11:44:42 2003] [error] Error ajp_process_callback - write failed
[Thu May 08 11:44:42 2003] [error] ajp13.service() ajpGetReply 
recoverable error 3
[Thu May 08 11:44:48 2003] [error] Error ajp_process_callback - write failed
[Thu May 08 11:44:48 2003] [error] ajp13.service() ajpGetReply 
recoverable error 3
[Thu May 08 11:44:48 2003] [error] ajp13.service() Error  forwarding 
ajp13:localhost:8009 1 0
[Thu May 08 11:44:48 2003] [error] mod_jk.handler() Error connecting to 
tomcat 3

I have attached my workers2 configuration file. Do you have any hints or 
pointers at which I sould look at?!

Thanks
Thomas

Re: seldom errors tomcat apache connection

Posted by Bill Barker <wb...@wilshire.com>.
These are usually caused by the user hitting the "stop" button in the
browser before the page has been fully sent.  Since you are seeing it about
1% of the time, I'd guess that that is the reason.

"Hartwig, Thomas" <t....@crapoud.com> wrote in message
news:3EBA31DA.4060908@crapoud.com...
> I use a servlet in an Apache 2.0.40->jk2->Tomcat 4.1.24 environment.
> In one out of about 100 requests there seem to be difficulties
> connecting the tomcat engine. The error occure in the apache error log.
> The catalina logfiles don't report anything useful even with debug level
> 10 in the context configuration. The apache server raises a internal
> server error then:
>
> [Thu May 08 11:44:42 2003] [error] Error ajp_process_callback - write
failed
> [Thu May 08 11:44:42 2003] [error] ajp13.service() ajpGetReply
> recoverable error 3
> [Thu May 08 11:44:48 2003] [error] Error ajp_process_callback - write
failed
> [Thu May 08 11:44:48 2003] [error] ajp13.service() ajpGetReply
> recoverable error 3
> [Thu May 08 11:44:48 2003] [error] ajp13.service() Error  forwarding
> ajp13:localhost:8009 1 0
> [Thu May 08 11:44:48 2003] [error] mod_jk.handler() Error connecting to
> tomcat 3
>
> I have attached my workers2 configuration file. Do you have any hints or
> pointers at which I sould look at?!
>
> Thanks
> Thomas
>


----------------------------------------------------------------------------
----


> [logger]
> level=debug
>
> [config:]
> file=${serverRoot}/conf/workers2.properties
> debug=1
> debugEnv=0
>
> [uriMap:]
> info=Maps the requests. Options: debug
> debug=1
>
> # Alternate file logger
> #[logger.file:0]
> #level=DEBUG
> #file=${serverRoot}/logs/jk2.log
>
> [shm:]
> info=Scoreboard. Required for reconfiguration and status with multiprocess
servers
> file=${serverRoot}/logs/jk2.shm
> size=1000000
> debug=1
> disabled=0
>
> [workerEnv:]
> info=Global server options
> timing=1
> debug=1
> # Default Native Logger (apache2 or win32 )
> # can be overriden to a file logger, useful
> # when tracing win32 related issues
> #logger=logger.file:0
>
> [lb:lb]
> info=Default load balancer.
> debug=1
>
> [lb:lb_1]
> info=A second load balancer.
> debug=1
>
> [channel.socket:localhost:8009]
> info=Ajp13 forwarding over socket
> debug=1
> tomcatId=localhost:8009
>
> #[channel.socket:localhost:8019]
> #info=A second tomcat instance.
> #debug=1
> #tomcatId=localhost:8019
> #lb_factor=1
> #group=lb
> #group=lb_1
> #disabled=0
>
> #[channel.un:/opt/33/work/jk2.socket]
> #info=A second channel connecting to localhost:8019 via unix socket
> #tomcatId=localhost:8019
> #lb_factor=1
> #debug=1
>
> [channel.jni:jni]
> info=The jni channel, used if tomcat is started inprocess
>
> [status:]
> info=Status worker, displays runtime informations
>
> [vm:]
> info=Parameters used to load a JVM in the server process
> #JVM=C:\jdk\jre\bin\hotspot\jvm.dll
> classpath=${TOMCAT_HOME}/bin/tomcat-jni.jar
> classpath=${TOMCAT_HOME}/server/lib/commons-logging.jar
> OPT=-Dtomcat.home=${TOMCAT_HOME}
> OPT=-Dcatalina.home=${TOMCAT_HOME}
> OPT=-Xmx128M
> #OPT=-Djava.compiler=NONE
> disabled=1
>
> [worker.jni:onStartup]
> info=Command to be executed by the VM on startup. This one will start
tomcat.
> class=org/apache/jk/apr/TomcatStarter
> ARG=start
> # For Tomcat 5 use the 'stard' for startup argument
> # ARG=stard
> disabled=1
> stdout=${serverRoot}/logs/stdout.log
> stderr=${serverRoot}/logs/stderr.log
>
> [worker.jni:onShutdown]
> info=Command to be executed by the VM on shutdown. This one will stop
tomcat.
> class=org/apache/jk/apr/TomcatStarter
> ARG=stop
> disabled=1
>
> [uri:/jkstatus/*]
> info=Display status information and checks the config file for changes.
> group=status:
>
> [uri:127.0.0.1:8003]
> info=Example virtual host. Make sure myVirtualHost is in /etc/hosts to
test it
> alias=myVirtualHost:8003
>
> [uri:127.0.0.1:8003/ex]
> info=Example webapp in the virtual host. It'll go to lb_1 ( i.e.
localhost:8019 )
> context=/ex
> group=lb_1
>
> [uri:/examples]
> info=Example webapp in the default context.
> context=/examples
> debug=1
>
> [uri:/examples1/*]
> info=A second webapp, this time going to the second tomcat only.
> group=lb_1
> debug=1
>
> [uri:/examples/servlet/*]
> info=Prefix mapping
>
> [uri:/examples/*.jsp]
> info=Extension mapping
>
> [uri:/examples/*]
> info=Map the whole webapp
>
> [uri:/examples/servlet/HelloW]
> info=Example with debug enabled.
> debug=1
>
> [uri:/tomcat/dictionary/*]
> context=/tomcat/dictionary
> debug=1
>
> [uri:/tomcat/*]
> debug=1
>
>
>
>


----------------------------------------------------------------------------
----


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