Skip to content
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

Statistics enhancements: maxWaitTime and numberOfConnections averages #6

Open
vladmihalcea opened this issue Jan 15, 2014 · 0 comments

Comments

@vladmihalcea
Copy link

I feel we could all benefit from having more detailed statistics, especially if exported through JMX as well. In my current production set-up we have tens of apps (web nodes, import apps, schedulers, each one with a BTM connection pool), all of them concurring for the limited set of database connections.

Trying to set the min and max pool size is more like a wild guess, and I think we can improve this process. For start, we could add more statistics info and make them available through JMX.

  1. We could add:
  • the cummulativeWaitTime (the time spent in XAPool.getInPool().waitForConnectionInPool())
  • the cummulativeConnectionRequestNumber (how many requests have been recorded)

Dividing these two could get us the average wait time.

  1. We could also have:
  • averageInPoolSize

Currently we have the instant in-pool size info, which is useful, but it changes so rapidly that it makes very difficult to poll it's value and make sure you really calculated a true average. If we set the min and max pool size, we are also interested in the average in-pool size (is it closer to min or to max), so we could better reason on the current pool size settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant