Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Memory Analyzer » MAT in batch mode stuck at a subtask
MAT in batch mode stuck at a subtask [message #1860032] Wed, 12 July 2023 11:31 Go to next message
Yanle Wei is currently offline Yanle WeiFriend
Messages: 2
Registered: July 2023
Junior Member
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 #1860087 is a reply to message #1860032] Sun, 16 July 2023 11:58 Go to previous messageGo to next message
Andrew Johnson is currently offline Andrew JohnsonFriend
Messages: 205
Registered: July 2009
Senior Member
You should be able to get a Java 17 runtime for macOS Intel 64-bit
Try https://adoptium.net/en-GB/temurin/releases/ or https://developer.ibm.com/languages/java/semeru-runtimes/downloads/?os=macOS

Does the problem happen for every dump?
Perhaps the dominator tree wasn't build properly on the iniital parse.

Does this work?
./ParseHeapDump.sh mydump.hprof -command=dominator_tree org.eclipse.mat.api:query
Re: MAT in batch mode stuck at a subtask [message #1860138 is a reply to message #1860087] Wed, 19 July 2023 10:03 Go to previous messageGo to next message
Yanle Wei is currently offline Yanle WeiFriend
Messages: 2
Registered: July 2023
Junior Member
Thanks, it works. However, the generated HTML file only shows the top level of the tree and cannot be expanded. The "java.lang.Thread" in the dominator tree generated by my heap takes up most of the retained size, but what I care about is the content inside. I've looked in the source code and there doesn't seem to be an option to specify the expansion depth of the tree either. Anyway thank you!

[Updated on: Wed, 19 July 2023 10:04]

Report message to a moderator

Re: MAT in batch mode stuck at a subtask [message #1860187 is a reply to message #1860138] Fri, 21 July 2023 07:58 Go to previous message
Andrew Johnson is currently offline Andrew JohnsonFriend
Messages: 205
Registered: July 2009
Senior Member
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.


Previous Topic:About size of Memory Analyzer of column
Next Topic:"Not a HPROF heap dump" with IBM .dmp on v1.14.0
Goto Forum:
  


Current Time: Mon Jan 20 01:31:17 GMT 2025

Powered by FUDForum. Page generated in 0.02687 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top