Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Jstat command to check the GC of jvm (take Linux as an example)

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

The jstat command allows you to see how much heap memory is being used and how many classes are being loaded. The format of the command is as follows:

jstat [-command option] [vmid] [interval/ms] [number of queries]

Attention!!: The version of jdk used is jdk8.

Class Loading Statistics:

Loaded: Number of loaded classes Bytes: Size of occupied space Unloaded: Unloaded Bytes: Unloaded occupied space Time: Compilation statistics

Compiled: Number of compilations. Failed: Failed Quantity Invalid: Unavailable Quantity Time: FailedType: FailedMethod: Failed Method Garbage Collection Statistics

S0C: Size of the first surviving area S1C: Size of the second surviving area S0U: Size of use of the first surviving area S1U: Size of use of the second surviving area EC: Size of Eden area EU: Size of use of Eden area OC: Size of old age OU: Size of old age MC: Size of method area MU: Size of use of method area CCSC: Size of compressed class space CCSU: Size of compressed class space use YGC: Number of times of garbage collection of young generation YGCT: Time of garbage collection consumption of young generation FGC: Number of times of garbage collection of old age FGCT: Time of garbage collection of old age GCT: Garbage Collection Total Time Heap Memory Statistics

NGCMN: Cenozoic minimum capacity NGCMX: Cenozoic maximum capacity NGC: Current Cenozoic Capacity S0C: The size of the first surviving area S1C: Size of the second survival zone EC: Size of Eden District OGCMN: Old-age minimum capacity OGCMX: OGC: Current old age size OC: Current old age size MCMN: Minimum metadata capacity MCMX: Maximum metadata capacity MC: Current metadata space size CCSMN: Minimum compressed class space size CCSMX: Maximum compressed class space size CCSC: Current compressed class space size YGC: Number of gc of young generation FGC: Number of GC of old age New generation garbage collection statistics

S0C: The size of the first surviving area S1C: Size of the second surviving area S0U: Size of use of the first surviving area S1U: Size of use of the second surviving area TT: Number of times an object survives in the new generation MTT: Maximum number of times an object survives in the new generation DSS: Expected size of the surviving area EC: Size of the Eden area EU: Size of use of the Eden area YGC: Number of times a young generation garbage collection YGCT: Time a young generation garbage collection consumes new generation memory statistics

NGCMN: Cenozoic minimum capacity NGCMX: Cenozoic maximum capacity NGC: Current Cenozoic capacity S0 CMX: Maximum surviving zone 1 size S0 C: Current surviving zone 1 size S1CMX: Maximum surviving zone 2 size S1C: Current surviving zone 2 size ECMX: Maximum Eden zone size EC: Current Eden zone size YGC: Young generation garbage collection times FGC: Old age garbage collection times Old age garbage collection statistics

MC: Method Area Size MU: Method Area Usage Size CCSC: Compressed Class Space Size CCSU: Compressed Class Space Usage Size OC: Old Age Size OU: Old Age Usage Size YGC: Young Generation Garbage Collections FGC: Old Age Garbage Collections FGCT: Old Age Garbage Collection Consumption Time GCT: Total Garbage Collection Consumption Time Old Age Memory Statistics

OGCMN: Minimum capacity of old age OGCMX: Maximum capacity of old age OGC: Size of current old age OC: Size of old age YGC: Number of garbage collections of young generation FGC: Number of garbage collections of old age FGCT: Garbage collection consumption time of old age GCT: Total time of garbage collection consumption Metadata spatial statistics

MCMN: Minimum Metadata Capacity MCMX: Maximum Metadata Capacity MC: Current Metadata Space Size CCSMN: Minimum Compressed Class Space Size CCSMX: Maximum Compressed Class Space Size CCSC: Current Compressed Class Space Size YGC: Number of Garbage Collections of Young Generation FGC: Number of Garbage Collections of Old Generation FGCT: Garbage Collection Consumption Time of Old Generation GCT: Total Garbage Collection Consumption Time Summary Garbage Collection Statistics

S0: Survival Zone 1 Current Usage Proportion S1: Survival Zone 2 Current Usage Proportion E: Eden Zone Usage Proportion O: Old Age Usage Proportion M: Metadata Zone Usage Proportion CCS: Compressed Usage Proportion YGC: Young Generation Garbage Collection Times FGC: Old Age Garbage Collection Times FGCT: Old Age Garbage Collection Consumption Time GCT: Total Garbage Collection Consumption Time JVM Compilation Method Statistics

Compiled: Number of most recently compiled methods Size: Number of bytecodes of most recently compiled methods Type: Compilation type of most recently compiled methods. Method: Method name identification.

http://shenzhen.offcn.com/

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report