You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Rick Yoesting <ry...@mac.com> on 2002/05/01 22:18:46 UTC

Tomcat 4.0.3 hangs, want to eliminate Warp error

Tomcat 4.0.3
Apache 1.3.23
Struts 1.0
Log4J 1.1.3

Tomcat hangs after a few hours of constant traffic, consuming most of 
the system
resources. When it hangs, all Tomcat logging stops. There on no error 
messages in
catalina.out, nor in the system logs, that indicate what the source of 
the
problem might be. There is no certain time frame for the failures
either -- it seems random.

We're attempting to elimate possible causes one by one, but we have 
little info
to act on.

We have noticed that were getting the same Warp connection error
as others have reported:
[org.apache.catalina.connector.warp.WarpConnection] Exception on socket
java.io.IOException: Premature packet header end
	at 
org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java(
Compiled Code))
	at 
org.apache.catalina.connector.warp.WarpRequestHandler.handle
(WarpRequestHandler.java(Compiled Code))
	at 
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:
194)
	at java.lang.Thread.run(Thread.java(Compiled Code))
	
To eliminate this problem, we've attempted the various proposed solutions
we've seen elsewhere on the list.
We grabbed the source for warp.jar and mod_webapp.so from cvs on 28 Apr. 
2002, compiled,
  and installed them both with no luck.

  What have we missed here?

  Thanks in advance for any insight you can provide,

  Rick

Here's the relevant server.xml
   <!-- Define an Apache-Connector Service -->
   <Service name="Tomcat-Apache">

     <Connector 
className="org.apache.catalina.connector.warp.WarpConnector"
      port="8008" minProcessors="10" maxProcessors="150"
      enableLookups="false"
      acceptCount="10" debug="4"/>

     <Engine className="org.apache.catalina.connector.warp.WarpEngine"
      name="Apache" defaultHost="www.mydomain.com" debug="4" 
appBase="webapps">

	      <Logger className="org.apache.catalina.logger.FileLogger"
         	      prefix="global_logger." suffix=".txt"
               	timestamp="true" verbosity="4"/>

	<!-- host www.mydomain.com -->
	<Host name="www.mydomain.com" debug="4" appBase="webapps" 
unpackWARs="true">
		<Context path="" docBase="saxon" debug="0"/>
		<Context path="/" docBase="saxon" debug="0"/>
	      <Logger className="org.apache.catalina.logger.FileLogger"
         	      prefix="www_apache_log." suffix=".txt"
               	timestamp="true" verbosity="4"/>
	</Host>

       <!-- Because this Realm is here, an instance will be shared 
globally -->
       <Realm className="org.apache.catalina.realm.MemoryRealm" />

     </Engine>

   </Service>

   Here's the Apache config.

   <VirtualHost 127.0.0.1:80>
     ServerAdmin webmaster@mydomain.com
     DocumentRoot /usr/local/tomcat/webapps/saxon
     ServerName www.mydomain.com

	###########
	# Tomcat connector!!
	###########
     WebAppConnection conn      warp  127.0.0.1:8008
     WebAppDeploy    saxon  conn  /
	WebAppInfo /webapp-info
</VirtualHost>


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>