eureka icon indicating copy to clipboard operation
eureka copied to clipboard

Closing connections idle longer than 30000 SECONDS

Open angheladrianclaudiu opened this issue 9 years ago • 1 comments

Hi,

This cleaning is causing problems while microservices are interacting with each other.

How can it be fixed?

I am using eureka-client 1.6.2, spring cloud Dalston.SR3 and Spring Boot 1.5.7.

2017-09-28 14:05:00.136 DEBUG 5 — [t-Conn-Cleaner2] c.n.d.shared.NamedConnectionPool : Closing connections idle longer than 30000 SECONDS
2017-09-28 14:05:00.142 DEBUG 5 — [t-Conn-Cleaner2] c.n.d.shared.MonitoredConnectionManager : Closing connections idle longer than -1 SECONDS
2017-09-28 14:05:00.142 DEBUG 5 — [t-Conn-Cleaner2] c.n.d.shared.NamedConnectionPool : Closing connections idle longer than 0 SECONDS
2017-09-28 14:05:00.142 DEBUG 5 — [t-Conn-Cleaner2] c.n.d.shared.NamedConnectionPool : Closing connection last used @ Thu Sep 28 14:04:30 GMT 2017
2017-09-28 14:05:00.142 DEBUG 5 — [t-Conn-Cleaner2] c.n.d.shared.NamedConnectionPool : Deleting connection [{}->http://eureka-server:<port>][null]
2017-09-28 14:05:00.142 DEBUG 5 — [t-Conn-Cleaner2] c.n.d.shared.NamedConnectionPool : Closing connection last used @ Thu Sep 28 14:04:30 GMT 2017
2017-09-28 14:05:00.142 DEBUG 5 — [t-Conn-Cleaner2] c.n.d.shared.NamedConnectionPool : Deleting connection [{}->http://eureka-server:<port>][null]

One of the issues that is causing: https://github.com/spring-projects/spring-security-oauth/issues/1176

Thanks, Adrian

angheladrianclaudiu avatar Sep 28 '17 15:09 angheladrianclaudiu

@angheladrianclaudiu the configuration eureka.eurekaserver.connectionIdleTimeoutInSeconds should allow you to configure a longer timeout if desired. This configuration is the native eureka config key and may be mapped to a slightly different name in spring cloud. It should be easily findable in the spring cloud documentation. Thanks.

qiangdavidliu avatar Feb 16 '18 18:02 qiangdavidliu