Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Memory Analyzer » MAT report from command line(I would like to run MAT to generate report from command line)
MAT report from command line [message #1795079] Fri, 14 September 2018 07:34 Go to next message
Mikolaj Habdank is currently offline Mikolaj HabdankFriend
Messages: 3
Registered: September 2018
Junior Member
I have a report which I would like to use to dump values from objects to text file. I tried this:
./MemoryAnalyzer -application org.eclipse.mat.api.parse ~/Documents/heapdump/JMAP_PID_8856.hprof ~/Documents/heapdump/report1.xml
Task: Reopening parsed heap dump file
Subtask: Test 'record ids' of section 'Record Id'
Subtask: SELECT l.specificRecord.record_id.value FROM OBJECTS ( SELECT OBJECTS a.@referenceArray FROM OBJECTS 1112896 a ) l
Subtask: SELECT OBJECTS a.@referenceArray FROM OBJECTS 1112896 a
but I'm not getting any records as an output on stdout even if in Eclipse MAT Application when I click Run Report I can see output like:
Record Id
Any hint how to run custom report from command line?
Re: MAT report from command line [message #1795113 is a reply to message #1795079] Fri, 14 September 2018 19:13 Go to previous message
Andrew Johnson is currently offline Andrew JohnsonFriend
Messages: 149
Registered: July 2009
Senior Member
Did running that command generate a file named something like this?

There should be a zip generated with all the files for the HTML report in the same directory as the dump.
Previous Topic:MAT report with all rows from query (more than 25)
Next Topic:MAT dependency
Goto Forum:

Current Time: Fri Jan 24 04:18:21 GMT 2020

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

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

Back to the top