Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get heap dump from a remote server jvm?

Tags:

jvm

heap-dump

How can I get aheap dump from a remote JVM which runs on linux with WL application server?

When I run locally on a windows machine I know how to get a dump. But, how do I get a dump from the user acceptance test server? Thanks in advance.

like image 722
Srisfti Avatar asked Dec 29 '14 14:12

Srisfti


1 Answers

You can use JMX to connect to the remote application server (it should be enabled in advance) and use the HotSpotDiagnostic MBean which allows taking a heap dump.
You can use JConsole or VisualVM for invoking the MBean operation.
This post by Mike Haller describes how to use this method with JVisualVM.

like image 91
Dror Bereznitsky Avatar answered Oct 15 '22 18:10

Dror Bereznitsky