Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Memory Analyzer » MAT on Linux(Running MAT on Linux)
icon5.gif  MAT on Linux [message #791679] Mon, 06 February 2012 05:55 Go to next message
Gopi V is currently offline Gopi VFriend
Messages: 2
Registered: February 2012
Junior Member
Hi,
I ran eclipse memory analyzer on Linux (Linux serverName 2.6.18-194.11.3.el5 #1 SMP Mon Aug 23 15:51:38 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux)

using using below command

jdk1.6.0_24/bin/java -XX:MaxNewSize=512m -Xmx7168m -XX:MaxPermSize=512m -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -verbose:gc -XX:-UseGCOverheadLimit -jar plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar -consoleLog -application org.eclipse.mat.api.parse ../java_pid98178.hprof

And it created below files for java_pid98178.hprof (2.5GB file)

java_pid98178.idx.index
java_pid98178.o2c.index
java_pid98178.a2s.index
java_pid98178.inbound.index
java_pid98178.outbound.index
java_pid98178.o2hprof.index
java_pid98178.index
java_pid98178.domIn.index
java_pid98178.o2ret.index
java_pid98178.domOut.index

Now, how can I analyze the files in graphic mode like in Windows on LInux. I am using Putty from my Windows laptop and I have Xwindows too.

I have exported DISPLAY variable and ran Xwindows on my laptop. Then ran ./MemoryAnalyzer, but no luck.

Thanks,
GV

[Updated on: Mon, 06 February 2012 06:00]

Report message to a moderator

Re: MAT on Linux [message #795999 is a reply to message #791679] Sat, 11 February 2012 07:52 Go to previous messageGo to next message
Krum Tsvetkov is currently offline Krum TsvetkovFriend
Messages: 164
Registered: July 2009
Senior Member
Hi,

There shouldnt be any difference to how you run MAT compared to Eclipse or other GUI software. It should be enough to export the display. I can't tell what is going wrong.

May be if this doesn't work, you can try the other way around - copy the dump and index files on your desktop machine. See http://www.eclipse.org/forums/index.php/t/271643/ .

Hope this helps.

Krum
Re: MAT on Linux [message #835806 is a reply to message #791679] Tue, 03 April 2012 17:45 Go to previous messageGo to next message
Simon Kelly is currently offline Simon KellyFriend
Messages: 2
Registered: April 2012
Junior Member
Hi,

Did you manage to get this working? I am in the same situation as you were; running the tool on our linux development server but not sure of the best route to viewing the results graphically. I would appreciate any guidance you could possibly give.

Regards,
Simon.
Re: MAT on Linux [message #836514 is a reply to message #835806] Wed, 04 April 2012 15:27 Go to previous messageGo to next message
Gopi V is currently offline Gopi VFriend
Messages: 2
Registered: February 2012
Junior Member
Simon,

I made an update to my command. Below is my updated command, this will also run the Leak_Suspects, System_Overview and Top_Components reports.

<JAVA_HOME>/bin/java -XX:MaxNewSize=512m -Xmx4096m -XX:MaxPermSize=512m -XX:-UseGC
OverheadLimit -jar plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar -consoleLog -application org.eclipse.mat.api.parse <HeapFileLocation>/heap.wls1_103d121.02-15-2012.hprof org.eclipse.mat.api:suspects org.eclipse.mat.api:overview org.eclipse.mat.api:top_components

This will generate <HeapDump>_Leak_Suspects.zip, <HeapDump>_Top_Components.zip and <HeapDump>_System_Overview.zip along with the index files.
Then I have copied my heap dump, index files and zip files (reports) to my windows desktop and ran eclipse memory analyzer on windows against my heap dump. Since MAT already got index files and Leak_Suspects, System_Overview and Top_Components reports, it wont parse the heapdump again (here you can give max heap ~1GB or 512MB) and you can view all the 3 reports. I hope this will help you.

Additionally even if X windows works the display wont be as good and fast as we run MAT locally on windows.

I hope this helps you

Regards,
Gopi
Re: MAT on Linux [message #837449 is a reply to message #836514] Thu, 05 April 2012 17:21 Go to previous message
Simon Kelly is currently offline Simon KellyFriend
Messages: 2
Registered: April 2012
Junior Member
Thanks Gopi. It worked fine for me. Appreciate you taking the time to respond.

Regards,
Simon.

[Updated on: Thu, 05 April 2012 17:21]

Report message to a moderator

Previous Topic:OQL Find all objects which belong to a HttpSession
Next Topic:can't aquire or open dump with MAT 1.1 on IBM SDK J9
Goto Forum:
  


Current Time: Fri Mar 29 00:22:24 GMT 2024

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

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

Back to the top