[ 
https://issues.apache.org/jira/browse/FLINK-19617?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17213766#comment-17213766
 ] 

Matthias edited comment on FLINK-19617 at 10/14/20, 9:35 AM:
-------------------------------------------------------------

The output [mentioned 
above|https://issues.apache.org/jira/browse/FLINK-19617?focusedCommentId=17213161&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-17213161]
 was generated using the code below:
{code:java}
for (MemoryPoolMXBean pool : ManagementFactory.getMemoryPoolMXBeans()) {
        System.out.println(" --- " + pool.getName() + " ( " + 
pool.getObjectName().getCanonicalName() + ") ---");       
        System.out.println("Init: " + pool.getUsage().getInit());
        System.out.println("Used: " + pool.getUsage().getUsed());
        System.out.println("Committed: " + pool.getUsage().getCommitted());
        System.out.println("Max: " + pool.getUsage().getMax());
}
{code}



was (Author: mapohl):

{code:java}
for (MemoryPoolMXBean pool : ManagementFactory.getMemoryPoolMXBeans()) {
        System.out.println(" --- " + pool.getName() + " ( " + 
pool.getObjectName().getCanonicalName() + ") ---");       
        System.out.println("Init: " + pool.getUsage().getInit());
        System.out.println("Used: " + pool.getUsage().getUsed());
        System.out.println("Committed: " + pool.getUsage().getCommitted());
        System.out.println("Max: " + pool.getUsage().getMax());
}
{code}


> Add Metaspace metric
> --------------------
>
>                 Key: FLINK-19617
>                 URL: https://issues.apache.org/jira/browse/FLINK-19617
>             Project: Flink
>          Issue Type: Sub-task
>            Reporter: Matthias
>            Priority: Major
>
> We want to expose the currently used Metaspace memory as well that should be 
> provided through the metrics system.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to