Bug 8433 - mod_webapp choking on concurrent requests
Summary: mod_webapp choking on concurrent requests
Status: RESOLVED DUPLICATE of bug 3509
Alias: None
Product: Tomcat 4
Classification: Unclassified
Component: Connector:Webapp (show other bugs)
Version: 4.0.2 Final
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-23 19:59 UTC by Cavan Morris
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cavan Morris 2002-04-23 19:59:33 UTC
I'm running tomcat 4.0.2 under apache 2.0.32 with webapp-module-1.0.2-tc402 on 
redhat 7.2 and jdk 1.4

I'm using the apache "ab" program for perfomance testing and have noticed that 
the sockets between apache and tomcat seem to die when I use concurrent 
requests.  Somtimes I have to restart the servers in order to get a response 
from them again.

Here's the ab command that will cause the problem:
./ab -v 2 -n 20 -c 2 MY_HOST/index.jsp

Here are the exceptions from the tomcat logs:
2002-04-23 11:38:02 WarpHost[MY_HOST]: Mapping request for Host
2002-04-23 11:38:02 WarpEngine[Apache]: Mapping request
2002-04-23 11:38:02 WarpHost[MY_HOST]: Mapping request for Host
2002-04-23 11:38:02 [org.apache.catalina.connector.warp.WarpConnector] 
Connection from /127.0.0.1:33290 to /127.0.0.1:8008
2002-04-23 11:38:02 [org.apache.catalina.connector.warp.WarpConnector] 
Connection from /127.0.0.1:33292 to /127.0.0.1:8008
2002-04-23 11:38:02 
[org.apache.catalina.connector.warp.WarpConfigurationHandler] Invalid packet 
with type 16
2002-04-23 11:38:02 [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:237)
        at org.apache.catalina.connector.warp.WarpRequestHandler.handle
(WarpRequestHandler.java:113)
        at org.apache.catalina.connector.warp.WarpConnection.run
(WarpConnection.java:194)
        at java.lang.Thread.run(Thread.java:536)

2002-04-23 11:38:02 [org.apache.catalina.connector.warp.WarpConnection] 
Exception on socket
java.net.SocketException: Socket closed
        at java.net.SocketOutputStream.socketWrite0(Native Method)
        at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
        at java.net.SocketOutputStream.write(SocketOutputStream.java:105)
        at org.apache.catalina.connector.warp.WarpConnection.send
(WarpConnection.java:220)
        at org.apache.catalina.connector.warp.WarpConfigurationHandler.handle
(WarpConfigurationHandler.java:246)
        at org.apache.catalina.connector.warp.WarpConnection.run
(WarpConnection.java:189)
        at java.lang.Thread.run(Thread.java:536)

2002-04-23 11:38:02 
[org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter mappings 
(0)
2002-04-23 11:38:02 
[org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter mappings 
(0)
2002-04-23 11:38:02 WarpEngine[Apache]: Mapping request

Changing the number of requests to perform from 20 to 100 will make it so that 
I have to restart apache to get a response from the host.
Comment 1 Pier Fumagalli 2002-04-29 12:51:47 UTC
This is the same thing happening on Windows with 1.3.x (multi-threading 
issue).

*** This bug has been marked as a duplicate of 3509 ***