I drive just load tests against a web application. Since it involves a problem, I've written a small test client, the 10 thread started, each opens in a loop, each a URLConnection to the web server (always the same URL on a bit of HTML comes back), the returned data reads, while time, measures the connection between flies and removal. A request typically takes about 200ms in the Intersection. Each thread runs through 50 iterations, so that 500 were sent at the end of request to the web application (which is not very much). Now it is so that each individual test run, sometimes for pretty much all the threads hang for 60 seconds, "stay" and then continue working but quite normal. The server returns the result of the request still correct to the client thread. The time is definitely here when connecting to server lost (InputStream is = con.getInputStream ()). Please help me in understanding this issue.! I am facing the problem with connection via URLConnection.
Bookmarks