Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Issue with HTTP Client connection pool

jkpanera
Level 5
Level 5

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?

1 Accepted Solution
Jörg_Hoh
Correct answer by
Employee
Employee
2 Replies
Jörg_Hoh
Correct answer by
Employee
Employee
maheshbabuvoma
Level 2
Level 2

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