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
20
votes
3 answers

Tomcat gradually running out of memory with WebSocket apps deployed

I have Tomcat 8.5.9 running on an AWS box with 10 different WebSocket apps deployed that each basically act as a message broker. The https connector is using the Http11NioProtocol. The only parameter I have set is the maxThreads=200 along with the…
Tommo
  • 977
  • 14
  • 35
11
votes
1 answer

parse memory snapshot hprof index files programmatically

I am trying to programmatically analyze an hprof file. Using the hprof-conv tool in the android-sdk I generated a bunch of com.your.package.index files. How do I programmatically parse these .index files? I want run some custom analysis on the…
Abhishek
  • 1,749
  • 9
  • 27
  • 39
10
votes
5 answers

eclipse memory analyzer sees small part (363,2MB) of entire heap dump (8GB)

I was trying to investigate java.lang.OutOfMemoryError: GC limit exceeded which occurs at high load of our web app deployed in tomcat. Heap size was set to 8GB (-Xms2048m -Xmx8192m) At some point in time our application become unresponsive due to GC…
9
votes
7 answers

Is it possible to view threads from hprof dump / threads in heap dump

I have got a large (5GB) hprof dump, created by application when OutOfMemoryError occurred. (Using XX: HeapDumpOnOutOfMemoryError ). Unfortunately there are no logs collected when this error happened. Re-creating this will take couple of hours. …
Jayan
  • 18,003
  • 15
  • 89
  • 143
8
votes
2 answers

get static fields of a class in a heap dump in OQL

I have a heap dump and I'm using Eclipse MAT, though I suppose this should work through visualvm or whatever OQL client. We can select fields of all instances of a class by doing something like select s.field1, s.field2 from org.me.MyClass ... but…
Joe Kearney
  • 7,397
  • 6
  • 34
  • 45
7
votes
5 answers

How to actually see a Bitmap taken from an Android heap dump

In the process of tracking severe memory issues in my app, I looked at several heap dumps from my app, and most of the time I have a HUGE bitmap that I don't know of. It takes 9.4MB, or 9,830,400 bytes, or actually a 1280x1920 image at 4 bytes per…
Benoit Duffez
  • 11,839
  • 12
  • 77
  • 125
7
votes
1 answer

OQL syntax for counting objects matching criteria

how can I count objects in Eclipse MAT using OQL syntax? This doesn't work : SELECT count(a) FROM org.hibernate.engine.EntityEntry a WHERE (toString(a.entityName)="my.pojo") (I want to count the number of hibernate pojos loaded into memory) There…
chamaster
  • 135
  • 2
  • 7
6
votes
1 answer

Eclipse : MAT error

I am developing an android application. In which i am trying to find out the memory leaks using MAT for the first time. I refereed following link. Link Till the step 3 its working. But when i try to run step 4 i am getting error in eclipse. The…
6
votes
2 answers

How to use existing Eclipse MAT indexes for interactive analysis

I am attempting to use Eclipse MAT (Memory Analysis Toolkit) to analyze some rather large heap dumps (~2G). My laptop unfortunately has 32bit Windows, and MAT runs out of heap space @ 1.4G allocated heap. I was successful in running the heap…
ShabbyDoo
  • 1,256
  • 1
  • 11
  • 20
4
votes
1 answer

Google Maps API causing memory leaks?

I just started using the Eclipse Memory Analyzer to try to solve a memory leak in my activity that extends MapActivity, but I am not sure if I understand its output correctly. In order to analyze the leak I started the activity and rotate the…
futtetennista
  • 1,876
  • 1
  • 20
  • 33
4
votes
1 answer

Java Memory issue : Java.lang.ref.finalizer object

In most of the research about the memory leak caused by finalizer object, either in our code or in a dependent library, one should be overriding the finalize method. But in my whole project its nowhere used. (I am using Java8) I am facing a memory…
arqam
  • 3,582
  • 5
  • 34
  • 69
4
votes
2 answers

Extract thread dump from a heap dump

I have a huge heap dump (around 12GB) and it will take forever to open it with MAT or jvisualvm. I only want to get the thread dump out of it without indexing the objects. Is it possible with the above or any other tools?
Vic
  • 21,473
  • 11
  • 76
  • 97
4
votes
0 answers

MAT identifying a leak in UI elements I didn't create

I ran MAT on my application to see if I can reduce memory leaks and `OutOfMemoryException's that are happening to my users. I saw in the histogram that was generated by the tool that one of my activities wasn't cleared from memory even though I…
thepoosh
  • 12,497
  • 15
  • 73
  • 132
3
votes
2 answers

Eclipse Memory Analyzer - Incompatible JVM

I have download Eclipse MAT and try to launch it on Windows. Executing MemoryAnalyzer.exe display a popup Incompatible JVM with this message: Version 1.8.0_242 of the JVM is not suitable for this product. Version: 11 or greater is required. As said…
Nicolas Dupouy
  • 450
  • 1
  • 7
  • 11
3
votes
1 answer

Heap size discrepancies in VisualVM vs Eclipse MAT

I'm trying to analyze the memory usage of my Java app. In VisualVM I see the Heap size as ~733M: But when I exported the heap dump to Eclipse MAT, it shows as 36.6MB: Why is that?
Glide
  • 20,235
  • 26
  • 86
  • 135
1
2 3 4