The heapdump generation is on a per node basis. If multiple heapdumps per process or node are requested, repeat the below steps as needed
- Log into the desired VMware Aria Operations node as root via SSH or Console
- Ensure the service for which the heapdump should be generated is in an active (running) state by running the following command:
service vmware-vcops status service_name
Note: Replace service_name with the service name of the service you want to generate the heapdump for. Use the table outlined in step 5 for a list of service names
Example: service vmware-vcops status collector
- Run the following command to see the available diskspace of the /storage/db drive:
df -H /storage/db
Note: The size of heapdump depends on multiple factors, such as node size, or the service the heapdump is generated on. For example, an Analytics heapdump generated on an extra large sized node could be 110GB or more. Ensure there is enough available space left on the
/storage/db drive. See
Troubleshooting Storage Issues in vRealize Operations (318408) if you need to free up space
- Run the following command to change to the /usr/lib/vmware-vcops/common/lib directory:
cd /usr/lib/vmware-vcops/common/lib
- Run the following command to generate the heapdump:
VMware Aria Operations 8.6.4 - 8.12.x
java -Djavax.net.ssl.trustStore=NONE -cp "alive_platform.jar:log4j-core-2.17.2.jar:vrops-logging-1.0-SNAPSHOT.jar:log4j-api-2.17.2.jar:vrops-jmx-metrics-1.0.jar:vrops-trustmanager-3.0-SNAPSHOT.jar:vcops-security-1.0-SNAPSHOT.jar" com.vmware.vcops.common.JMXCommandExecutor service-port-number dumpHeap /storage/db/vcops/heapdump
VMware Aria Operations 8.14.x and later (FIPS OFF)
java -Djavax.net.ssl.trustStore=NONE -cp "alive_platform.jar:log4j-core-2.17.2.jar:vrops-logging-1.0-SNAPSHOT.jar:log4j-api-2.17.2.jar:vrops-jmx-metrics-1.0.jar:vrops-trustmanager-3.0-SNAPSHOT.jar:vcops-security-1.0-SNAPSHOT.jar:bc-fips-1.0.2.3.jar:bctls-fips-1.0.12.3.jar" com.vmware.vcops.common.JMXCommandExecutor service-port-number dumpHeap /storage/db/vcops/heapdump Note: Replace
service-port-number with the port number of the VMware Aria Operations service you need to generate a heapdump for.
Service |
Service Name |
Port Number |
Analytics |
analytics |
9004 |
Collector |
collector |
9005 |
UI (tcServer) |
ui |
9006 |
API (REST) |
api |
9007 |
Example:
java -Djavax.net.ssl.trustStore=NONE -cp "alive_platform.jar:log4j-core-2.17.2.jar:vrops-logging-1.0-SNAPSHOT.jar:log4j-api-2.17.2.jar:vrops-jmx-metrics-1.0.jar:vrops-trustmanager-3.0-SNAPSHOT.jar:vcops-security-1.0-SNAPSHOT.jar:bc-fips-1.0.2.3.jar:bctls-fips-1.0.12.3.jar" com.vmware.vcops.common.JMXCommandExecutor 9004 dumpHeap /storage/db/vcops/heapdump
VMware Aria Operations 8.14.x and later (FIPS ON)
java -Djavax.net.ssl.trustStore=NONE -cp "alive_platform.jar:log4j-core-2.17.2.jar:vrops-logging-1.0-SNAPSHOT.jar:log4j-api-2.17.2.jar:vrops-jmx-metrics-1.0.jar:vrops-trustmanager-3.0-SNAPSHOT.jar:vcops-security-1.0-SNAPSHOT.jar:bc-fips-1.0.2.3.jar:bctls-fips-1.0.12.3.jar:bcutil-fips-current.jar:bctls-fips-current.jar:bcpkix-fips-current.jar:bc-fips-current.jar" com.vmware.vcops.common.JMXCommandExecutor service-port-number dumpHeap /storage/db/vcops/heapdump
Note: Replace service-port-number with the port number of the VMware Aria Operations service you need to generate a heapdump for. Please check above mentioned table.
- Once the generation is complete, the resulting file will be located in the /storage/db/vcops/heapdump directory. An SCP Utility, such as WinSCP, can be used to copy the heapdump so it can be uploaded to VMware Support.