![]() ![]() When you load a Heap dump for the first time, the MAT will index it. To configure your application to produce a heap dump whenever an OutOfMemory Error is thrown, add the following vm argument:Īlternatively, you can use jstack to acquire a Heap dump from a currently running java process.įinally, you can use the MAT’s Acquire Heap Dump action to choose an existing Java process on your local machine. However, if you use the MAT alongside other debugging tools and techniques, you can often conquer memory leaks pretty quickly. The MAT cannot tell you why an object was created, nor can it show you objects that have already been garbage collected. In all cases it’s important to keep in mind that this is a snapshot of memory at a point in time. Manually acquire a heap dump and load it into the MAT. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |