-
Notifications
You must be signed in to change notification settings - Fork 542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consul goroutines overwhelmed #549
Comments
No, unfortunately. Any more information you can provide? Versions? Configuration? |
We observed this happening in Spring 1 and Spring 2.
All Spring services are running inside an Alpine:3.8 + Java 8 docker container image. Consul server is running in the Docker Host and accessed through its private IP (not docker network IP) |
We register the service on the orchestrator (Nomad) hence the register: false |
Spring 1 and Spring 2 are not any versions I recognize. Can you show your dependencies? Nothing looks out of the ordinary. |
We have many services with different spring versions like 1.5.19 and 2.1.3 |
Ok, we finally found the bug. The problem was using the scheme 'https' with certificates, seems that the apache library "org.apache.http" doesn't does the relese connection properly in the package package org.apache.http.impl.execchain; It keeps alive indefinitely. We see the next logs doing the catalogServicesWatch. `[TaskScheduler-1] o.a.http.impl.execchain.MainClientExec : Connection can be kept alive indefinitely [TaskScheduler-1] h.i.c.PoolingHttpClientConnectionManager : Connection request: [route: {s}->https://consul.cloud.XXXXX.XX:8500][total kept alive: 4; route allocated: 4 of 500; total allocated: 4 of 1000] [TaskScheduler-1] o.a.http.impl.execchain.MainClientExec : Connection can be kept alive indefinitely |
Can I close this then? |
There's still an issue when Springs is configured to use SSL connection to Consul. We worked around the problem using plain HTTP |
We do very little to configure the Lines 55 to 69 in f10cb55
My guess is that you need to open an issue here https://github.com/Ecwid/consul-api |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue. |
I want to ask a question. I have ca.pem and ca-key.pem files But I don't know how to get the things in these variables. for example key-store-instance-type: ??? in the springboot ,Which one to choose : JKS,JCEKS, PKCS12, PKCS11, DKS;
key-store-path: ??? what is this ? How can i get it
key-store-password: ??? what is this ? How can i get it
certificate-path: consul-client-ca.pem
certificate-password: ??? what is this ? How can i get it
```y
Could you tell me. Thank you very much |
We enabled Consul Service Discovery and Spring starts opening connections to the Consul Server never closing and exhausting available connections. We dont see anything special on the logs, but on the systems side (using netstat) we see a 500+ "ESTABLISED" connections from the Spring microservice.
Any ideas?
Thanks in advance
The text was updated successfully, but these errors were encountered: