[
https://issues.apache.org/jira/browse/FLINK-19617?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17213766#comment-17213766
]
Matthias commented on FLINK-19617:
----------------------------------
{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)