Skip to content

Commit

Permalink
Incremented max connections in pool to 999 (max allowed by httpclient…
Browse files Browse the repository at this point in the history
…) to avoid GC issues in high throughput applications (i.e. ecs-sync)
  • Loading branch information
arnett, stu committed Mar 2, 2017
1 parent 14c3582 commit bf17c73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/emc/rest/smart/SmartClientFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ static ApacheHttpClient4Handler createApacheClientHandler(SmartConfig smartConfi

// set up multi-threaded connection pool
org.apache.http.impl.conn.PoolingClientConnectionManager connectionManager = new org.apache.http.impl.conn.PoolingClientConnectionManager();
// 200 maximum active connections (should be more than enough for any JVM instance)
connectionManager.setDefaultMaxPerRoute(200);
connectionManager.setMaxTotal(200);
// 999 maximum active connections (max allowed)
connectionManager.setDefaultMaxPerRoute(999);
connectionManager.setMaxTotal(999);
clientConfig.getProperties().put(ApacheHttpClient4Config.PROPERTY_CONNECTION_MANAGER, connectionManager);

// set proxy config
Expand Down

0 comments on commit bf17c73

Please sign in to comment.