This is more of a note. Here you can find default types and attributes for JMX on top of Java 8. Code: I will clean and explain it later :( private static void WriteAttributes(final MBeanServer mBeanServer, final ObjectName http) throws InstanceNotFoundException, IntrospectionException, ReflectionException { MBeanInfo info = mBeanServer.getMBeanInfo(http); MBeanAttributeInfo[] attrInfo = info.getAttributes(); System.out.println("Attributes for object: " + http +":\n"); for (MBeanAttributeInfo attr : attrInfo) { System.out.println(" " + attr.getName() + "\n"); } } Attributes for object: java.lang:type=MemoryPool,name=Metaspace: Name Type Valid Usage PeakUsage MemoryManagerNames UsageThreshold UsageThresholdExceeded UsageThresholdCount UsageThresholdSupported CollectionUsageThreshold CollectionUsageThresholdExce
Note : This tip is for Mac OSX 10.5 or later Apple recommends to set the $JAVA_HOME variable to /usr/libexec/java_home , just export $JAVA_HOME in file ~/. bash_profile You might not have .bash_profile present on your system already. No worries we will create/update the profile in next step. Open Terminal: $ vi ~/.bash_profile Initially the vi editor will not be in edit mode, press 'i'. Update file by exporting variable: export JAVA_HOME=$(/usr/libexec/java_home) to the file (in the vi editor which we opened using the previous command) Saving and Closing the .bash_profile file opened inside vim editor: Press escape (while still inside the vi editor) type ":wq!" or press "Shift + zz" to save and exit the file.