You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Matt Pavlovich (Jira)" <ji...@apache.org> on 2021/12/16 16:43:00 UTC

[jira] [Updated] (AMQ-8414) [Proposal] Support KahaDB stats to be micro-seconds or milliseconds

     [ https://issues.apache.org/jira/browse/AMQ-8414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Pavlovich updated AMQ-8414:
--------------------------------
    Fix Version/s:     (was: 5.16.4)

> [Proposal] Support KahaDB stats to be micro-seconds or milliseconds
> -------------------------------------------------------------------
>
>                 Key: AMQ-8414
>                 URL: https://issues.apache.org/jira/browse/AMQ-8414
>             Project: ActiveMQ
>          Issue Type: New Feature
>            Reporter: Matt Pavlovich
>            Assignee: Matt Pavlovich
>            Priority: Major
>             Fix For: 5.17.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.
> 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.1#820001)