Skip to content

Is there a way to get information about Metaspace memory? #1216

Answered by evernat
LeonardoIPM asked this question in Q&A
Discussion options

You must be logged in to vote

There is no graph in javamelody about Metaspace, but javamelody can display MBeans.
For example, see the following page in the demo and open java.lang and then Metaspace:
http://javamelody.org/demo/monitoring?part=mbeans

You will see:

Metaspace
type=MemoryPool
-  CollectionUsage	null	 
-  CollectionUsageThresholdSupported	false	 
-  MemoryManagerNames	[Metaspace Manager]	 
-  Name	Metaspace	 
-  ObjectName	java.lang:type=MemoryPool,name=Metaspace	 
-  PeakUsage	{committed=72 781 824, init=0, max=-1, used=70 921 824}	 
-  Type	NON_HEAP	 
-  Usage	{committed=72 781 824, init=0, max=-1, used=70 847 368}	 
-  UsageThreshold	0	 
-  UsageThresholdCount	0	 
-  UsageThresholdExceeded	false	 
-  U…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by LeonardoIPM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants