tags:

views:

87

answers:

2

Hi, I want to access MemoryPool Mbeans through a java program so that I can retrieve the Eden Space, Perm Gen space, CodeCahe, Survior Space statistics during a period of time. How to do this? I tried java.lang:type=MemoryPool,name=Eden Space

I wan not lucky

Thanks, Shankar

A: 

Hello, Anyone pls help me...

Hi,Got the way to do it.Used ManagementFactory.MEMORY_POOL_MXBEAN_DOMAIN_TYPE,* for defining Object name, got the instances. That solved my problem.
A: 

Hi, Got the way to do it. Used ManagementFactory.MEMORY_POOL_MXBEAN_DOMAIN_TYPE,* for defining Object name, got the instances. That solved my problem.