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

Code fragment on JMX monitoring page incorrect #139

Closed
diwakergupta opened this issue Sep 5, 2014 · 1 comment
Closed

Code fragment on JMX monitoring page incorrect #139

diwakergupta opened this issue Sep 5, 2014 · 1 comment
Labels

Comments

@diwakergupta
Copy link

Example at https://github.com/brettwooldridge/HikariCP/wiki/JMX-Monitoring#programmatic-access reads:

MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer();
   ObjectName poolName = new ObjectName("com.zaxxer.hikari.pool:type=Pool (foo)");
   Integer idleConnections = (Integer) mBeanServer.getAttribute(poolName, "IdleConnections");

The ObjectName should be com.zaxxer.hikari:type=Pool (foo) not com.zaxxer.hikari.pool:type=Pool (foo)

@brettwooldridge
Copy link
Owner

Fixed.

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

No branches or pull requests

2 participants