org.apache.http.conn.ConnectionPoolTimeoutException: Timeout waiting for connection from pool

Stack Overflow | Lazaruss | 4 months ago
  1. 0

    Amazon S3 service ConnectionPoolTimeoutException: Timeout waiting for connection from pool

    Stack Overflow | 4 months ago | Lazaruss
    org.apache.http.conn.ConnectionPoolTimeoutException: Timeout waiting for connection from pool
  2. 0

    GitHub comment 5664#258257245

    GitHub | 1 month ago | bdm123
    org.apache.http.conn.ConnectionPoolTimeoutException: Timeout waiting for connection from pool
  3. 0

    Timeout waiting for connection from pool - despite single SolrServer

    Stack Overflow | 2 years ago | Schaka
    org.apache.http.conn.ConnectionPoolTimeoutException: Timeout waiting for connection from pool
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ConnectionPoolTimeoutException with multi-threaded HttpClient usage

    hc-httpclient-users | 4 years ago | Marko Asplund
    org.apache.http.conn.ConnectionPoolTimeoutException: Timeout waiting for connection from pool
  6. 0

    By default the HttpSolrServer creates a HttpClient with a PoolingClientConnectionManager with 32 connections per host and 128 total connections. When using MulticoreSolrServerFactory the connManager property is null for the cloned HttpClients and these clients will create a default PoolingClientConnectionManager via createClientConnectionManager() method of the SystemDefaultHttpClient later. So instead of the desired 32/128 connection limit the clients will only have a 2/20 connection limit, which will cause a lot of these exceptions for environments with more than 2 concurrent requests for solr resources: {code}Caused by: org.apache.http.conn.ConnectionPoolTimeoutException: Timeout waiting for connection from pool at org.apache.http.impl.conn.PoolingClientConnectionManager.leaseConnection(PoolingClientConnectionManager.java:232) at org.apache.http.impl.conn.PoolingClientConnectionManager$1.getConnection(PoolingClientConnectionManager.java:199) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:455) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:784) at org.apache.solr.client.solrj.impl.HttpSolrServer.executeMethod(HttpSolrServer.java:448) ... 149 more{code}

    Spring JIRA | 2 years ago | Oliver Saggau
    org.apache.http.conn.ConnectionPoolTimeoutException: Timeout waiting for connection from pool

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.http.conn.ConnectionPoolTimeoutException

      Timeout waiting for connection from pool

      at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.leaseConnection()
    2. Apache HttpClient
      PoolingHttpClientConnectionManager$1.get
      1. org.apache.http.impl.conn.PoolingHttpClientConnectionManager.leaseConnection(PoolingHttpClientConnectionManager.java:286)[httpclient-4.5.1.jar!/:4.5.1]
      2. org.apache.http.impl.conn.PoolingHttpClientConnectionManager$1.get(PoolingHttpClientConnectionManager.java:263)[httpclient-4.5.1.jar!/:4.5.1]
      2 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)[na:na]
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_91]
      3. java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_91]
      3 frames
    4. AWS SDK for Java - Core
      $Proxy188.get
      1. com.amazonaws.http.conn.ClientConnectionRequestFactory$Handler.invoke(ClientConnectionRequestFactory.java:70)[aws-java-sdk-core-1.11.8.jar!/:na]
      2. com.amazonaws.http.conn.$Proxy188.get(Unknown Source)[na:na]
      2 frames