[
https://issues.apache.org/jira/browse/AMQ-8414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jean-Baptiste Onofré updated AMQ-8414:
--------------------------------------
Fix Version/s: 5.19.0
5.18.3
(was: 5.18.2)
> Support KahaDB stats to be nanoseconds
> --------------------------------------
>
> Key: AMQ-8414
> URL: https://issues.apache.org/jira/browse/AMQ-8414
> Project: ActiveMQ
> Issue Type: Improvement
> Reporter: Matt Pavlovich
> Assignee: Matt Pavlovich
> Priority: Major
> Fix For: 5.19.0, 5.18.3
>
>
> Modern disks are fast, and measuring time in millis is not fine grained
> enough to get correct averages when there are a few blips in performance.
> Also, totals get aggregated and the total time exceeds the uptime too quickly
> to be correct.
> Current:
> TimeStatisticImpl
> {noformat}
> System.currentTimeMillis() - start
> {noformat}
> Proposed:
> NanoTimeStatisticsImpl extends TimeStatisticImpl
> {noformat}
> System.nanoTime() / 1000 - start
> {noformat}
> kahaDB config flag "statisticsUnit="nanos | millis" (default: millis)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)