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

How to get Jetty server usage metrics? #82

Open
fernandohackbart opened this issue Jun 2, 2017 · 1 comment
Open

How to get Jetty server usage metrics? #82

fernandohackbart opened this issue Jun 2, 2017 · 1 comment
Assignees

Comments

@fernandohackbart
Copy link
Owner

fernandohackbart commented Jun 2, 2017

Check how to get Jetty server metrics to use in the autonomic behavior metrics

@fernandohackbart fernandohackbart self-assigned this Jun 2, 2017
@fernandohackbart fernandohackbart changed the title How to get jetty server usage metrics? How to get Jetty server usage metrics? Jun 5, 2017
@fernandohackbart
Copy link
Owner Author

// Add the statistics module to the connector
ConnectorStatistics stats = new ConnectorStatistics();
connector.addBean(stats);

// Then access the information.
System.out.printf("Connector.getConnections() = %,d%n", stats.getConnections());
System.out.printf("Connector.getConnectionsOpen() = %,d%n", stats.getConnectionsOpen());
System.out.printf("Connector.getConnectionsMax() = %,d%n", stats.getConnectionsMax());

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