One small post but useful for those who wants to monitor Alfresco's JVM memory usage through VisualVM.
To enable connection through JMX, first you need to enable it in setenv.sh file. Simply add below line and restart Alfresco. You should be able to connect to JMX.
Linux:
export JAVA_OPTS="${JAVA_OPTS} -Dcom.sun.management.jmxremote -Djava.net.preferIPv4Stack=true"
Winodws:
set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote -Djava.net.preferIPv4Stack=true
In VisulVM, you can connect using below string. Please select "Add JMX connection".
To enable connection through JMX, first you need to enable it in setenv.sh file. Simply add below line and restart Alfresco. You should be able to connect to JMX.
Linux:
export JAVA_OPTS="${JAVA_OPTS} -Dcom.sun.management.jmxremote -Djava.net.preferIPv4Stack=true"
Winodws:
set JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.management.jmxremote -Djava.net.preferIPv4Stack=true
In VisulVM, you can connect using below string. Please select "Add JMX connection".
No comments:
Post a Comment