jetty / jetty/jetty.project

Improve ConnectionStatistics to report dynamic information

Open
#5,826 8 comments 0 reactions 1 assignee Claimed by @sbordet View on GitHub
Help Wanted Low Priority
Dominant language
Java
Stars
4.1k
Forks
2k
Avg merge
3d 56m
Merged PRs (30d)
48

Description

**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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.