I run load tests for my application. I have two servers: one with my application and a dummy server that is responsible for the responses.
In my dummy server, I have the following jsp code:
<%@ page import="java.util.Random" %> <%@ page language="java" %> <%@ page session="false" %> <% String retVal = "some json string"; Thread.sleep(50); %>
I am running an application with tomcat7. My server.xml connection pool (on both servers) looks like this:
<Executor name="tomcatThreadPool" namePrefix="catalina-exec-" maxThreads="1500" minSpareThreads="1000" prestartminSpareThreads="true" /> <Connector port="9031" protocol="HTTP/1.1" connectionTimeout="20000" maxConnections="4000" executor="tomcatThreadPool" redirectPort="8443" />
The java code that I run from the servers:
HttpPost post = new HttpPost(bidderUrl); post.setHeader("Content-Type", "application/json");
I run Jmetter with 50 parallel threads (no loop) and get many exceptions like this:
org.apache.http.NoHttpResponseException The target server failed to respond
So far, I only run 5 or 10 simultaneous threads, everything is working fine.
Could you advise me what might be wrong in my setup? As far as I understand, I see no errors for 50 concurrent thread requests.
Julias May 13 '12 at 9:26 a.m. 2012-05-13 09:26
source share