jetty/jetty.project

Improve ConnectionStatistics to report dynamic information

Open

#5826 aperta il 18 dic 2020

Vedi su GitHub
 (7 commenti) (0 reazioni) (1 assegnatario)Java (1913 fork)batch import
Help WantedLow Priority

Metriche repository

Star
 (3701 star)
Metriche merge PR
 (Merge medio 6g 14h) (48 PR mergiate in 30 g)

Descrizione

Jetty version 9.4.x

Description ConnectionStatistics gathers statistics from the connections only when they are closed.

This is not optimal for benchmarks that perform a run, but then keep connections open.

It would be great if ConnectionStatistics (or perhaps another class, say DynamicConnectionStatistics) had a mode where upon an API call (e.g. DynamicConnectionStatistics.collect()) would run through the open connections and gather the statistics from them.

Guida contributor