jetty/jetty.project

Improve ConnectionStatistics to report dynamic information

Open

#5,826 创建于 2020年12月18日

在 GitHub 查看
 (7 评论) (0 反应) (1 负责人)Java (1,913 fork)batch import
Help WantedLow Priority

仓库指标

Star
 (3,701 star)
PR 合并指标
 (平均合并 6天 14小时) (30 天内合并 48 个 PR)

描述

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.

贡献者指南