We often need to check the values of some variables in the memory to locate problems in the production environment. Jmap is usually used to capture dump. When we capture dump, we will take all the heap down: jmap-dump: format = B, file = path pid will then generate a package of several hundred MB, let the O & M personnel drag down from the production environment and send it to you, then you open it with jvisualvm, when you open this dump, when you see the memory you want to see, it's almost half a day. In fact, we have lost a very important parameter: live, which indicates that we need to capture the current memory objects in the lifecycle, that is to say, the GC can not be taken away, and then in most cases, the memory is needed. If we add this parameter: jmap-dump: live, format = B, file = path pid, then the dump captured will be reduced by an order of magnitude, around dozens of MB, in this way, the time for enabling this dump will be greatly reduced, and a valuable time will be earned to solve the fault.