1. set the following Java options in run.conf (if you are on Windows, set them in run.bat)
JAVA_OPTS="....... -XX:+HeapDumpOnOutOfMemoryError -Dcom.sun.management.jmxremote.port=9999 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djboss.platform.mbeanserver -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl -Djava.rmi.server.hostname=
2. use jvisualvm.exe in your JDK to attach to the remote JBoss: Remote -> Add Remote Host -> add JMX connection ->
3. run the following script on the server, to get memory utilization percentages:
pid=`
}`
No comments:
Post a Comment