How to capture Thread and Heap dump for Email Engine process. |
This knowledge article may contain information that does not apply to version 21.05 or later which runs in a container environment. Please refer to Article Number 000385088 for more information about troubleshooting BMC products in containers. Requirement : - JDK on same box on another box to open "jvisualvm.exe". For same box: 1) Stop Email Engine service from services console. 2) Open Emailstart.bat file from Email Engine installation directory where we need to append below string between: "%JAVA_OPTS%" and -cp -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8086 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false For example: .......................... "%JavaPath%\java" "%JAVA_OPTS%" -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8086 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -cp emaildaemon.jar;.;log4j-1.2.14.jar;arapi%LIBVER%.jar;arutil%LIBVER%.jar;activation.jar;mail.jar;imap.jar;smtp.jar;pop3.jar;armapi%LIBVER%.jar;com.bmc.arsys.companion.client-%OSGI_BUNDLE_VER%-SNAPSHOT.jar;com.bmc.arsys.companion.remote-%OSGI_BUNDLE_VER%-SNAPSHOT.jar;com.bmc.arsys.messaging.client-%OSGI_BUNDLE_VER%-SNAPSHOT.jar;activemq-all-5.10.0.jar com.bmc.arsys.emaildaemon.EmailDaemon %* .......................... Note: We can define any available port. 8086 is just an example. 3) Then open command prompt as administrator and browse to Email Engine installation directory and start Emailstart.bat file (Start Email Engine from command line) 4) Then open "jvisualvm.exe" from JDK installation dir/bin. Then expand local it will show you email engine string as: "com.bmc.arsys.emaildaemon.EmailDaemon (pid XXXX)" Right click on above string to take heap and thread dump. The files may be large in siz. Zip the files and if require use our FTP to place the compressed file(s). To use our FTP please check the following article: BMC Remedy How to upload files on ftp.bmc.com The following links have details for both Windows and Linux. https://communities.bmc.com/docs/DOC-115801 ---------------------------------------------------------------------- Title: JVisualVM_Monitoring_For_Email_Engine Watch Video: https://bmctube.bmc.com/watch/8573/jvisualvm-monitoring-for-email-engine/ ---------------------------------------------------------------------- Related Article(s) Remedy - Server - How to collect Java heap dumps (and thread dumps) for AR Server troubleshooting - ARS 9.x |