Eclipse Memory Analyzer does not show java processes

152 Views Asked by At

Having some java applications, which are just compatible with JDK8, I set my environment variable %JAVA_HOME% to the JDK8 path. Furthermore I would like to analyze memory leaks using Eclipse Memory Analyszer Tool (MAT) within these applications.

So i have downloaded AdoptiumJDK17, installed it, but did not set JAVA_HOME for this JDK. For starting MAT I have used the -vm Parameter for setting JDK17 in the ini-file. MAT is starting fine, but File -> Acquire Head Dump does not show any java.exe running with JDK8 in the background.

Is there any possibility to find these processes?

2

There are 2 best solutions below

2
aled On

You should use the same JDK version to run MAT than the process that you want to analyze. Also both should be executed by the same user to avoid permission issues.

1
user13762112 On

Use the 'Configure...' button on the 'Acquire Heap Dump Dialog' to set up the 'HPROF jmap dump provider' and configure 'jdkhome' to point to the JDK directory matching the target JDK 8 applications.