tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christophe Fondacci" <>
Subject Tomcat bottleneck on InternalInputBuffer.parseRequestLine
Date Tue, 01 Jul 2008 15:23:59 GMT
Hello all,

We have a problem with tomcat on our production server.
This problem may be related to the one listed here :

Here it is :
- We got 2 tomcat servers on 2 distinct machines.
- 1 server is our application (let's call it A for Application server)
- The other server is hosting solr (let's call it S for Solr server)
- All servers are Tomcat 6.0.14 running on jdk 1.6.0_02-b05 on Linux (Fedora 
core 6)
- Server A performs http requests to server S by 2 ways :
     > A http get (using apache commons HttpClient) with URL like 
     > A http post with URL like :  http://S:8080/solr/select/ with a set of 
12 NameValuePair

When traffic is light on our server A, everything works great.
When traffic is high on our server A (simultation of 40 simultaneous users 
with Jmeter), some requests to our server S take more than 200 seconds. It 
happens randomly and we couldn't isolate an URL-pattern: an URL can return 
in less than 500ms and the exact same URL can take 300s before returning...

We performed deep jvm analysis (using jprofiler) to observe what was going
on on the Solr-server. When the problem occurs, we can see threads which are
stucked with the following call stack :

at Method)

Requests which returns in 200s+ seem to spend almost all their time reading 
this input stream...
The javadoc says parseRequestLine is used to parse the http header. As I 
stated above, our URL seem quite small so I can't understand why it happens. 
The response from server S is very small as well.

We are able to reproduce the problem with less than 40 threads, but it is 
more difficult to repoduce.
As I said at the beginning, I have found a user which had a similar problem 
but the mailing list thread does not give any solution...

Has anyone an idea of what is going on ? Is there settings we can use to 
avoid this problems ?
I am out of ideas on what to try to fix this...

Any help would be highly appreciated...thank you very much.

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message