FYI, for reading the free memory on the server there is the jboss.system:type=ServerInfo
mbean.
For the total heap space, it has the following attributes:
FreeMemory (total - used)
TotalMemory (i.e. currently committed memory)
MaxMemory (maximum)
But there is also the listMemoryPools(true/false) operation to give you the same
information displayed by JConsole.
http://wiki.jboss.org/wiki/Wiki.jsp?page=HowCanIDisplayTheMemoryPoolUsage
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042787#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...