jetty/jetty.project

Improve ConnectionStatistics to report dynamic information

Open

#5.826 geöffnet am 18. Dez. 2020

Auf GitHub ansehen
 (7 Kommentare) (0 Reaktionen) (1 zugewiesene Person)Java (1.913 Forks)batch import
Help WantedLow Priority

Repository-Metriken

Stars
 (3.701 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 6T 14h) (48 gemergte PRs in 30 T)

Beschreibung

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.

Contributor Guide