[
https://issues.apache.org/jira/browse/CLOUDSTACK-8761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14712523#comment-14712523
]
ASF GitHub Bot commented on CLOUDSTACK-8761:
--------------------------------------------
Github user wilderrodrigues commented on the pull request:
https://github.com/apache/cloudstack/pull/730#issuecomment-134834411
@ustcweizhou is just calling the wrapper for the system in millis, which
was added to the profiler. For the remaining cases, the nano time will be used
(getDuration()).
His use of getDurationInMillis() looks good because inside the method I
convert the nanoseconds to milliseconds:
(stopTickNanoSeconds - startTickNanoSeconds) /
(long)Math.pow(MILLIS_FACTOR, EXPONENT);
LGTM :+1:
Cheers,
Wilder
> Management server heartbeat takes too long to finish
> ----------------------------------------------------
>
> Key: CLOUDSTACK-8761
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8761
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Reporter: Wei Zhou
> Assignee: Wei Zhou
>
> We got a lot of debug message in management-server.log every 1.5 seconds.
> The cluster.heartbeat.interval is set to 1500 by default. As it was not
> changed after its first commit, so I think it is 1500 ms.
> However, The durations are less than 10ms actually.
> 2015-08-18 00:00:04,526 DEBUG [c.c.c.ClusterManagerImpl]
> (Cluster-Heartbeat-1:ctx-047bb88f) Management server heartbeat takes too long
> to finish. profiler: Done. Duration: 4ms, profilerHeartbeatUpdate: Done.
> Duration: 3ms, profilerPeerScan: Done. Duration: 0ms
> 2015-08-18 00:00:06,036 DEBUG [c.c.c.ClusterManagerImpl]
> (Cluster-Heartbeat-1:ctx-68018e26) Peer scan takes too long to finish.
> profiler: Done. Duration: 0ms, profilerQueryActiveList: Done. Duration: 0ms,
> profilerSyncClusterInfo: Done. Duration: 0ms, profilerInvalidatedNodeList:
> Done. Duration: 0ms, profilerRemovedList: Done. Duration: 0ms
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)