In this recipe, we will learn how to get the JVM memory information with regard to heap-size, non heap-size, metaspace size (PermGen until Java 7), eden, old, and survivor, by invoking a command to the CLI. There is a command for each of them.
Remember I'm running WildFly remotely, bound to
192.168.59.103 as IP. WildFly is already up and running.
We will walk through the "
metaspace" (PermGen until Java 7), "
old", and the "
survivor" area memories, separately.
For information on heap memory, perform the following steps:
$ cd $WILDFLY_HOME $ ./bin/jboss-cli.sh -c --controller=192.168.59.103:9990 --user=wildfly ...