I try to run following commnad:
beans -d java.lang:name=Code Cache,type=MemoryPool
Then I get:
#IllegalArgumentException: Domain java.lang:name=Code doesn't exist, check your spelling
It looks like this command does not handle well with names having ' ' (in my case 'Code Cache ')