fernandohackbart / biosphere

FREEZED!! Moved to https://gitlab.com/fernando.hackbart/biosphere
3 stars 0 forks source link

How to get Jetty server usage metrics? #82

Open fernandohackbart opened 7 years ago

fernandohackbart commented 7 years ago

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

fernandohackbart commented 7 years ago

// 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());