You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Jerry Cwiklik (JIRA)" <de...@uima.apache.org> on 2014/04/01 16:34:31 UTC

[jira] [Closed] (UIMA-3714) DUCC agent garbage collector doesnt accumulate time correctly

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

Jerry Cwiklik closed UIMA-3714.
-------------------------------

    Resolution: Fixed

Fixed how GC count and time is accumulated from java's garbage collector beans. Replaced =+ with +=.

> DUCC agent garbage collector doesnt accumulate time correctly
> -------------------------------------------------------------
>
>                 Key: UIMA-3714
>                 URL: https://issues.apache.org/jira/browse/UIMA-3714
>             Project: UIMA
>          Issue Type: Bug
>          Components: DUCC
>    Affects Versions: 1.0-Ducc
>            Reporter: Jerry Cwiklik
>            Assignee: Jerry Cwiklik
>            Priority: Minor
>
> The garbage collector in the agent has a subtle bug that prevents accumulation of gc correctly. While iterating over GC JMX Beans the code tries to accumulate time as follows:
> time =+ bean.gcTime;
> This obviously doesnt do what is intended. The correct code should be
> time += bean.gcTime;



--
This message was sent by Atlassian JIRA
(v6.2#6252)