[ https://issues.apache.org/jira/browse/AMQ-8414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matt Pavlovich updated AMQ-8414: -------------------------------- Summary: Support KahaDB stats to be nanoseconds (was: Support KahaDB stats to be micro-seconds or nanoseconds) > 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.18.0 > > > 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)