Apache HTTPClient doesn't allow more than 1500 reusable connections -


i'm using apache httpclient (4.2.2) / java7 open many reusable connections tomcat 7 server (to simulate many users repeatedly hitting service). both client , server on ubuntu 12 (but different machines). made sure systctl.conf , limits.conf allow scenario.

this works 1500 simulated users / connections. connections reused expected. somewhere between 1500 , 1600 simulated users however, connections no longer reused , closed/ re-opend time. why might case?

i don't think problem on server side when start multiple simulation clients on different machines against same server, server has no problems reusing connections long each client doesn't go beyond 1500 connections.

there can various reasons why connections not longer being re-used depending on configuration of connection manager or server side configuration. easiest way find out reason run httpclient context logging on described in 'context logging connection management / request execution' example in logging guide


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -