Questions tagged [eclipse-mat]

The Eclipse Memory Analyzer is a fast and feature-rich Java heap analyzer that helps you find memory leaks and reduce memory consumption.

The Eclipse Memory Analyzer is a fast and feature-rich Java heap analyzer that helps you find memory leaks and reduce memory consumption.

Use the Memory Analyzer to analyze productive heap dumps with hundreds of millions of objects, quickly calculate the retained sizes of objects, see who is preventing the Garbage Collector from collecting objects, run a report to automatically extract leak suspects.

Related Links:

56 questions
3
votes
1 answer

Mat can't open the dump file

My jmap command is sudo -u flume /usr/java/jdk1.8.0_60/bin/jmap -F -dump:format=b,file=heap.hprof pid, But eclips mat can't open the dump file,and throw an exception. java.lang.NullPointerException at…
Dev Zhou
  • 865
  • 2
  • 14
  • 21
3
votes
1 answer

MAT: How do you diagnose "x instances of "byte[]", loaded by "" occupy y (z%) bytes" memory issues?

I'm trying to diagnose a memory issue in my Android app. I dumped an HPROF file and have it loaded up in the Eclipse MAT tool (see How to analyze memory using android studio). I'm now trying to make sense of the listed "Leak Suspects" I'm wondering…
loeschg
  • 29,961
  • 26
  • 97
  • 150
2
votes
1 answer

Java heap dump file (.hprof) is much larger than heap size in eclipse MAT

I have some frequent full GC problems in production with Java, I suspect the memory was allocated by network library for buffering TCP request result. I have dump the Java heap when the memory usage is high (about 8GB). I tried to analyze the .HPROF…
Jay
  • 601
  • 6
  • 17
2
votes
0 answers

Large number of duplicate string in memory/heapdump

I am using wildfly-9.0.1.Final on server. Allocated memory is 20 GB with UseG1GC and UseStringDeduplication(with default threshold) flag. I faced high memory usage on server, for troubleshooting I had collected heapdump. I used Eclipse MAT for…
mcacorner
  • 1,304
  • 3
  • 22
  • 45
2
votes
0 answers

Leak Suspects Report not getting rendered on Eclipse MAT

When I try to open leak suspects for my heap dump, a zip file gets created in the same location as that of the heap dump file. But, it doesn't get rendered on MAT (I'm using MAT version 1.7.0). I have separately unzipped the leak suspects zip file…
2
votes
0 answers

How to view the size of an object in a tree view from a java program (similar as in eclipse mat)

I have a heapdump retrieved and opened with the Eclipse Memory Analyzer. Unfortunately a big part is represented by the serialized wicket page, I've done right click > Copy > Save Value To File, saved it on my desktop. After this I've opened it in…
valentin_nasta
  • 596
  • 4
  • 23
2
votes
1 answer

Eclipse MAT shows no stack for many threads

I have a leak in my code, and I've got a memory dump that I'm looking at with the awesome Eclipse Memory Analyzer tool. Using the Thread_Overview, I can see that I have too many threads. However, only a few show stacks. The bulk of them (which…
Dave C
  • 1,572
  • 4
  • 23
  • 34
2
votes
0 answers

Interactive querying of java heap dumps in headless (terminal only) machine

I need to investigate a potential memory leak in a java application. specifically: I have an object type that is contained in a map. this data is reread every now and then, and the map is replaced with the new one. However, it appears that some of…
Ophir Yoktan
  • 8,149
  • 7
  • 58
  • 106
2
votes
2 answers

How to use "AND operator (&&)" in OQL in MAT Eclipse

I am working on performance tuning of a java rmi application and using OQL to execute below query : select tpoint.host.value.toString() from sun.rmi.transport.tcp.TCPEndpoint tpoint where (tpoint.host!=null && tpoint.csf!=null) Above query…
mogli
  • 1,549
  • 4
  • 29
  • 57
1
vote
1 answer

Java heap dump - why so much memory is taken by Gradle

I am running a test, in a Spring boot Java application, using Intellij profiler (Async profiler). I use the profiler to investigate a possible memory leak, which the test exposes. When i analyze the dump (images are taken from Eclipse MAT) i see…
mosh
  • 404
  • 2
  • 8
  • 16
1
vote
2 answers

HEAP DUMP too big to open in Eclipse MAT

I have a heap dump that is causing out of memory exception for my program, the size for the heap dump is 12GB because of which I am unable to load it in my MAT analyser, what are the alternatives I can try, or is there a way I can upload the heap…
1
vote
1 answer

Eclipse Memory Analyzer to identify JDBC leaking

I was trying to identify a JDBC leaking in our application. I obtained a heap dump which it showed me the in use count from SELECT p.pool.poolName.toString() AS poolName , p.checkedOutSize.value AS inUse , p.cls.baseCount AS active ,…
Tom
  • 371
  • 2
  • 6
  • 15
1
vote
1 answer

Eclipse MAT OQL list of classes in a certain package

using Eclipse MAT 1.9.1 OQL I want to list all the classes in the heap dump in a certain package. I am trying the query: SELECT c.getName() as name, c.getName().indexOf("com.mycompany") as idx FROM java.lang.Class c WHERE idx > 0…
David Abragimov
  • 524
  • 2
  • 6
  • 24
1
vote
1 answer

Mat Eclipse - Java byte 2GB with no GC roots

I am trying to debug large byte object which is 2GB and seems to contain nulls only. I cannot find any GC roots when using Eclipse MAT. The JVM is running IBM J9 in websphere. Any ideas why Eclipse MAT is not showing any GC roots, hard or…
Tommys
  • 121
  • 8
1
vote
1 answer

How to analyze deeply linked objects in Eclipse MAT

I am trying to analyze a memory leak using Eclipse MAT. I already know that the issue is caused by an object that is essentally a linked list, e.g. something like this: class Obj { byte[] data; Obj next; } The problem is that it is very deep…
SztupY
  • 10,291
  • 8
  • 64
  • 87