GitHub user neykov opened a pull request:

    Fix calculation of currently used memory by the JVM

    Before the change I was getting readings like `brooklyn gc (after) - using 
2.59 GB / 2.86 GB (1268 MB real) memory with `-DXmx=3G`. `2.86` is `maxMemory` 
same as `Xmx`. `1268` is `totalMemory` which is the currently allocated memory 
by the JVM from the operating system. The used memory can't be more than the 
    Confirmed the new readings by comparing to jconsole.

You can merge this pull request into a Git repository by running:

    $ git pull fix/used-memory

Alternatively you can review and apply these changes as the patch at:

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #384
commit ac04bbf145501f4ee0cde5b8160343499ff5b0eb
Author: Svetoslav Neykov <>
Date:   2016-10-14T09:47:27Z

    Fix calculation of currently used memory by the JVM


If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

Reply via email to