-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
connectionpool_inPool gauge not correcly reflecting connections in pool as it never decreases #1719
Comments
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
I'm still interested in whether anyone has ideas about how to fix the |
I don't see the same issue in our internal inUse metrics. The counter should be decremented by |
Sorry, @jguerra. I had a typo in my coment yesterday. It should have said |
We are logging the connectionpool_inPool metric every minute to track open connections. Unfortunately, this metric appears to increase with each new connection created and does not decrease when the connection is closed as the metric only increases over time. We can use netstat to see that there are nowhere near as many open connections as reported by connectionpool_inPool.
The connectionpool_inUse metric seems to be accurate.
Here is the code we use to register the metric colleciton in our Bootstrap.java:
We are using Zuul 2.4.0. We saw the same behavior in 2.3.0. I attempted to look at the code that tracks these metrics but the increment/decrement logic for the connection tracking was hard for me to follow as it appeared to be sprinkled across many methods.
The text was updated successfully, but these errors were encountered: