Issue with HTTP Client connection pool | Community
Skip to main content
jkpanera
May 6, 2021
Solved

Issue with HTTP Client connection pool

  • May 6, 2021
  • 2 replies
  • 2358 views

Hey guys,

 

I'm gettting a connection pool error trying to initiate an HTTP Post request:

 

org.apache.http.conn.ConnectionPoolTimeoutException: Timeout waiting for connection from pool at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.leaseConnection(PoolingHttpClientConnectionManager.java:313) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager$1.get(PoolingHttpClientConnectionManager.java:279) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:191) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56) at org.apache.http.client.fluent.Request.internalExecute(Request.java:173) at org.apache.http.client.fluent.Executor.execute(Executor.java:262) at com.panerabread.core.services.rest.impl.HttpClientServiceImpl.executeRequest(HttpClientServiceImpl.java:86) at com.panerabread.core.servlets.FormServlet.sendEmail(FormServlet.java:240) at com.panerabread.core.servlets.FormServlet.doPost(FormServlet.java:101)

 

Where is the actual config for the pool size?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by joerghoh

According to the javadocs a threadpool with 100 threads is used:

 

https://hc.apache.org/httpcomponents-client-4.5.x/current/fluent-hc/apidocs/

2 replies

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
May 6, 2021

According to the javadocs a threadpool with 100 threads is used:

 

https://hc.apache.org/httpcomponents-client-4.5.x/current/fluent-hc/apidocs/

May 13, 2021

@jkpanera can you provide the piece of java code you're using to post request