MAT in batch mode stuck at a subtask [message #1860032] |
Wed, 12 July 2023 11:31 |
Yanle Wei 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 #1860138 is a reply to message #1860087] |
Wed, 19 July 2023 10:03 |
Yanle Wei 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
|
|
|
|
Powered by
FUDForum. Page generated in 0.02687 seconds