How to access GarbageCollectorMXBean with name ParNew in EAP 6
Issue
- How to access garbage collector MBean ?
- While accessing garbage collector for
ParNewin standalone and domain mode, following error occur :
Standalone Mode :
[standalone@localhost:9999 /] /core-service=platform-mbean/type=garbage-collector/name=ParNew:read-attribute(name=collection-count)
{
"outcome" => "failed",
"failure-description" => "JBAS012320: No GarbageCollectorMXBean with name ParNew currently exists",
"rolled-back" => true
}
Domain Mode :
[domain@localhost:9999 /] /host=master/server=server-one/core-service=platform-mbean/type=garbage-collector/name=ParNew:read-attribute(name=collection-count)
{
"outcome" => "failed",
"result" => undefined,
"failure-description" => "JBAS012320: No GarbageCollectorMXBean with name ParNew currently exists",
"rolled-back" => true
}
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.1.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.