Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jmx attribute value unavailable means  RSS feed

 
rajareddya reddy
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

What is the meaning of jmx attribute value - unavailable .I am facing problem when jmx attribute value is Unavailable.I am getting exceptions like javax.management.RuntimeMBeanException: java.lang.UnsupportedOperationException.

Can anybody help
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which JMX MBean and attribute are you trying to access? If it's one of your own, show the implementation.
 
rajareddya reddy
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I am trying to access java.lang:type=MemoryPool,name=PS Survivor Space mbean, I am seeing its attributes -usage threshold,usage thresholdcount,usage thresholdExceeded has Unavailable as as value.

Using my code, just i am displaying the attribute information in the jsf. i am able to display all that attributes except the attributes having unavailable as value.There I am getting exceptions like -avax.management.RuntimeMBeanException: java.lang.UnsupportedOperationException: Usage threshold
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wouldn't be concerned about this; those values are probably not applicable to that type of MemoryPool. On my JVM I'm also seeing various (and differing) sets of attributes being unavailable for the different MemoryPool MBeans.
 
rajareddya reddy
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

If the attributes are not applicable to memory pool mbean, then why they are configured for the same mbean in jconsole. Any reason behind this?

 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What attributes are exposed by an MBean is not determined at runtime, it is determined when the bean is written. For most MBeans, there is no easy way to make this decision dynamically, so this is their way of signalling that an attribute is not available.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!