question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Zuul/Hystrix: HTTP connection leak in case of timeout

See original GitHub issue

See https://github.com/spring-cloud/spring-cloud-netflix/issues/327 for a complete description of the issue and scenarios to reproduce it.

The bottom line is:

It turns out that Zuul leaks HTTP connections if a service takes longer than the Hystrix execution timeout but less than the ReadTimeout. To summarise:

execTime < hystrixTimeout < readTimeout --> OK (no leak) hystrixTimeout < execTime < readTimeout --> LEAK hystrixTimeout < readTimeout < execTime --> OK (no leak) readTimeout < execTime < hystrixTimeout --> OK (no leak) readTimeout < hystrixTimeout < execTime --> LEAK

The problem has been identified in the RibbonCommand returning an HttpResponse that will never be closed in case of Hystrix timeout. Hence causing connection leaks in the HTTP connection pool.

Although the issue affects SpringCloud’s version of the Zuul server, it seems that com.netflix.zuul.dependency.ribbon.hystrix.RibbonCommand would be affected as well.

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
z0mb1ekcommented, Apr 13, 2016

any news?

0reactions
DaveBendercommented, Jun 1, 2017

This issue is still marked ‘Open,’ but the comments suggest that a bug fix has been merged nearly a year ago. Is this fixed or is it still hanging out there open?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Zuul/Hystrix: HTTP connection leak in case of timeout #327
It turns out that Zuul leaks HTTP connections if a service takes longer than the Hystrix execution timeout but less than the ReadTimeout....
Read more >
Developers - Zuul/Hystrix: HTTP connection leak in case of timeout -
The problem has been identified in the RibbonCommand returning an HttpResponse that will never be closed in case of Hystrix timeout. Hence causing...
Read more >
Zuul1 can't release the underlying httpclient's connection pool ...
I wonder why leased connections cannot released? My zuul1's configuration is: ribbon: ReadTimeout: 2000 ConnectTimeout: 1000 ...
Read more >
Connection leak on connection timeout - Google Groups
We have 2 systems, using synchronous posts, returning a ClientResponse object. Under very high load, the target system begins to timeout followed by...
Read more >
connection leak issue when OutOfMemory - Apache
ConnectionPoolTimeoutException : Timeout waiting for connection from pool at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found