课程: Java Memory Management: Garbage Collection, JVM Tuning, and Spotting Memory Leaks
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Getting JVM metrics - Java教程
课程: Java Memory Management: Garbage Collection, JVM Tuning, and Spotting Memory Leaks
Getting JVM metrics
- [Instructor] So, all right. When we want to do GVM tuning we kind of need to know what's going on in the GVM. So, how to get the metrics of what's going on in the GVM? There are actually multiple options. First of all, there's a bunch of command-line tools for this. There's also all sorts of visualization tools and there's some more complex profilers. Profilers really get some insights of what's actually going on inside GVM by showing the GVM metrics. It's doing so in monitoring the Java a bite code and it's seeing how it's really operating at the GVM level. So for the purpose of this course, we're going to be diving into the first two. So we're going to have a look at the command-line tool, Jstat, and we to be using VisualVM for visualization. So first of all, jstat what is this? Well, it's actually a GVM statistics monitoring tool, jstat. How to use it? On the command-line, we use the command jstat. You have it already, that's the great news here. And then you have all sorts of…