Learn how to analyze the heap dump to work out where the memory leak is happening, and then fix and re-test.
- [Instructor] So, how do we work out what's wrong here?…Well I think the first thing to do is to get a heap dump…and to analyze it in our analyze tool.…So we'll do that on the monitor tab.…Let's click on heap dump, that will create one for us…and it'll tell us in a moment where it saved it.…Okay so we've got the location…of where that Heap Dump file is, I'm just going to copy that…and in fact I could stop my simulation running now.…
So let's go back into the Jmeter application…and we'll click stop to stop the simulation.…Now we want to run our memory analyzer tool…so we'll do that, so here's our memory analyzer tool…that we saw earlier in the course.…So I'm just going to close the welcome window…and we'll open the Heap Dump file that was just created.…So I'm pasting that in here and clicking on open,…and we'll give this a moment to analyze the Heap Dump.…
Okay while we've only used this tool once before,…you might remember when we looked at it previously…there was one problem suspect.…Now we have three problem suspects,…
Author
Released
12/19/2018- How memory works in Java
- Passing variables by value
- How objects are passed
- What are escaping references?
- How to avoid escaping references with collections and custom objects
- Garbage collection and generation sizes
- Detecting soft leaks
- Choosing a garbage collector
- Tuning a virtual machine
- Fixing a memory leak
Skill Level Intermediate
Duration
Views
Related Courses
-
Windows Performance Toolkit: Detecting Memory Leaks
with Thomas Pantels53m 32s Intermediate -
Learning Java Threads
with Peggy Fisher1h 9m Advanced
-
Introduction
-
Introduction1m 45s
-
-
1. How Memory Works in Java
-
Why memory is important1m 3s
-
The role of the stack5m 11s
-
The role of the Heap9m 36s
-
-
2. Values and References
-
Passing variables by value5m 26s
-
How objects are passed3m 30s
-
The final keyword6m 14s
-
Memory exercise1m 15s
-
Exercise walkthrough7m 18s
-
-
3. Escaping References
-
Exercise walkthrough10m 54s
-
4. Introduction to Garbage Collection
-
String pools9m 14s
-
Garbage eligibility5m 43s
-
-
5. Generational Garbage Collection
-
Mark and sweep2m 37s
-
-
6. Tuning the Virtual Machine
-
Heap size5m 16s
-
PermGen size1m 12s
-
Choosing a garbage collector4m 51s
-
-
7. Hunting for a Memory Leak
-
Monitoring the application8m 47s
-
Fixing a memory leak10m 39s
-
Conclusion
-
Course summary22s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Fixing a memory leak