jetty/jetty.project

Improve ConnectionStatistics to report dynamic information

開放

#5,826 建立於 2020年12月18日

 (8 則留言) (0 個反應) (1 位負責人)Java (1,913 個分叉)batch import
Help WantedLow Priority

倉庫指標

星標
 (3,701 顆星)
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.

貢獻者指南