How should I use this option
Thanks in Advance
It's NOT an option. What Peter suggested is Java method to be used by a Java program.
There is a very basic built-in functionality that can provide logg messaged though. Look in "$JBOSS_HOME/server/XXX/deploy/monitoring-service.xml" (Search for "MemoryMonitor")
You can use the jconsole.exe from the jdk(in the /bin path). It shows you a detailed overview of a java.exe(for example the jboss service) but not of a single ejb- or web-application. I think that doesn't work in anyway.