MAT in batch mode stuck at a subtask [message #1860032] |
Wed, 12 July 2023 07:31  |
Eclipse User |
|
|
|
Hi community, I'm using batch mode to analyze an hprof file, but I'm encountering an issue. I am using JDK 8, MAT version 1.11.0 (I have downloaded versions 1.12.0 and later, but they indicate that JDK 8 is not supported), and I am on macOS (Intel).
Initially, MAT reported an error saying "Failed to create the Java Virtual Machine." I added the JDK path to the MemoryAnalyzer.ini file, which allowed it to open successfully. It works fine when I use the GUI to analyze dump files.
However, what I actually need is to use the batch mode. I copied "ParseHeapDump.sh" to "mat.app/Contents/MacOS/" and ran the commands mentioned in the documentation at https://help.eclipse.org/2023-03/index.jsp?topic=/org.eclipse.mat.ui.help/tasks/batch.html. When I use "org.eclipse.mat.api:suspects" or "org.eclipse.mat.api:overview," the output shows that I'm stuck at the subtask "Test 'Biggest Objects (Overview)' of section 'Top Consumers'". Similarly, when I use "org.eclipse.mat.api:top_components," it gets stuck at the subtask "Test 'Distribution' of section 'Overview'". The process cannot be interrupted by Ctrl+C, and I have to kill it or quit the app.
Furthermore, when I use "org.eclipse.mat.api:query," it runs successfully, but I cannot find the retained size in the result. Therefore, I need to find a way to run the aforementioned commands.
Additionally, the size of the dump file is less than 10MB, so it does not seem to be a memory size issue.
Could you please help me solve this problem? Thank you!
|
|
|
|
|
Re: MAT in batch mode stuck at a subtask [message #1860187 is a reply to message #1860138] |
Fri, 21 July 2023 03:58  |
Eclipse User |
|
|
|
I'm stuck at the subtask "Test 'Biggest Objects (Overview)' of section 'Top Consumers'". Similarly, when I use "org.eclipse.mat.api:top_components," it gets stuck at the subtask "Test 'Distribution' of section 'Overview'".
Both of those subtasks have a graph from the org.eclipse.mat.chart component which uses BIRT as the graphing package. Perhaps something has gone wrong there.
Please try again to get the latest MAT to work with a Java 17 SDK/JRE.
|
|
|
Powered by
FUDForum. Page generated in 0.03419 seconds