You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Cederberg Per <pe...@wmdata.com> on 2002/04/08 17:48:42 UTC
Problem with HTTP/1.0 Connection in Tomcat 4.0.1 & 4.0.3
Hi!
I'm having some problems running the HTTP 1.0 connector in
Tomcat 4.0.3 (and 4.0.1). I keep getting the following
exceptions in catalina.<date>.log (repeated every 2 secs):
2002-04-08 17:10:19 HttpProcessor[3080][4] process.parse
javax.servlet.ServletException: Missing HTTP request line
at org.apache.catalina.connector.http10.HttpProcessor.parseRequest(HttpProcessor.java(Compiled Code))
at org.apache.catalina.connector.http10.HttpProcessor.process(HttpProcessor.java(Compiled Code))
at org.apache.catalina.connector.http10.HttpProcessor.run(HttpProcessor.java(Compiled Code))
at java.lang.Thread.run(Thread.java:512)
2002-04-08 17:10:19 HttpProcessor[3080][4] process.invoke
java.lang.IllegalStateException
at org.apache.catalina.connector.HttpResponseFacade.sendError(HttpResponseFacade.java:145)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:158)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http10.HttpProcessor.process(HttpProcessor.java(Compiled Code))
at org.apache.catalina.connector.http10.HttpProcessor.run(HttpProcessor.java(Compiled Code))
at java.lang.Thread.run(Thread.java:512)
The error message in Tomcat 4.0.1 is only slightly different. I'm
unable to get any connection through to Tomcat (obviously). My connection
config is this:
<Connector className="org.apache.catalina.connector.http10.HttpConnector"
port="3080" minProcessors="5" maxProcessors="10"
enableLookups="false" redirectPort="8443"
scheme="https" proxyPort="443"
acceptCount="10" debug="0"/>
Is this a known issue or am I doing something really odd here?
Kind regards,
/Per
PS. As an answer to the obvious question of why not use HTTP 1.1:
When performance testing our servlet with JMeter, we have run into
a threading problem. It appears that Tomcat requires about 4x the
number of threads used for launching requests in JMeter, or we get
loads of "No processor available, rejecting this connection" errors.
After a Google search I found an old post to this group
http://www.apachelabs.org/tomcat-user/200102.mbox/%3c3A998468.13CE7CF7@eng.sun.com%3e
explaining I'd be better off with HTTP 1.0. We cannot increase the
maxProcessors much beyond 30-40, as the IBM JDK for AIX (that we use)
have native threads only, causing random problems and core dumps when
running with the default 75 threads...
+-------------------------------------------------------
| Per Cederberg, WM-data Cross Industry Solutions
| mailto: pecee(at)wmdata.com
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>