GC 日志格式官方解釋

原文:
https://docs.oracle.com/javase/8/docs/technotes/guides/vm/gctuning/generations.html#sthref16

以下是文中提到JDK1.8 的GC日志格式解釋

 ## Measurement

Throughput and footprint are best measured using metrics particular to the application. For example, the throughput of a web server may be tested using a client load generator, whereas the footprint of the server may be measured on the Solaris operating system using the `pmap` command. However, pauses due to garbage collection are easily estimated by inspecting the diagnostic output of the virtual machine itself.

The command-line option `-verbose:gc` causes information about the heap and garbage collection to be printed at each collection. For example, here is output from a large server application:

[GC 325407K->83000K(776768K), 0.2300771 secs]
[GC 325816K->83372K(776768K), 0.2454258 secs]
[Full GC 267628K->83769K(776768K), 1.8479984 secs]


The output shows two minor collections followed by one major collection. The numbers before and after the arrow (for example, `325407K->83000K` from the first line) indicate the combined size of live objects before and after garbage collection, respectively. After minor collections, the size includes some objects that are garbage (no longer alive) but cannot be reclaimed. These objects are either contained in the tenured generation or referenced from the tenured generation.

The next number in parentheses (for example, `(776768K)` again from the first line) is the committed size of the heap: the amount of space usable for Java objects without requesting more memory from the operating system. Note that this number only includes one of the survivor spaces. Except during a garbage collection, only one survivor space will be used at any given time to store objects.

The last item on the line (for example, `0.2300771 secs`) indicates the time taken to perform the collection, which is in this case approximately a quarter of a second.

The format for the major collection in the third line is similar.

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末胰蝠,一起剝皮案震驚了整個(gè)濱河市履肃,隨后出現(xiàn)的幾起案子谋梭,更是在濱河造成了極大的恐慌,老刑警劉巖庭呜,帶你破解...
    沈念sama閱讀 216,651評(píng)論 6 501
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件绍撞,死亡現(xiàn)場(chǎng)離奇詭異眨八,居然都是意外死亡堂氯,警方通過查閱死者的電腦和手機(jī)蔑担,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 92,468評(píng)論 3 392
  • 文/潘曉璐 我一進(jìn)店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來祖灰,“玉大人钟沛,你說我怎么就攤上這事畔规【址觯” “怎么了?”我有些...
    開封第一講書人閱讀 162,931評(píng)論 0 353
  • 文/不壞的土叔 我叫張陵叁扫,是天一觀的道長(zhǎng)三妈。 經(jīng)常有香客問我,道長(zhǎng)莫绣,這世上最難降的妖魔是什么畴蒲? 我笑而不...
    開封第一講書人閱讀 58,218評(píng)論 1 292
  • 正文 為了忘掉前任,我火速辦了婚禮对室,結(jié)果婚禮上模燥,老公的妹妹穿的比我還像新娘。我一直安慰自己掩宜,他們只是感情好蔫骂,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,234評(píng)論 6 388
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著牺汤,像睡著了一般辽旋。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 51,198評(píng)論 1 299
  • 那天补胚,我揣著相機(jī)與錄音码耐,去河邊找鬼。 笑死溶其,一個(gè)胖子當(dāng)著我的面吹牛骚腥,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播瓶逃,決...
    沈念sama閱讀 40,084評(píng)論 3 418
  • 文/蒼蘭香墨 我猛地睜開眼桦沉,長(zhǎng)吁一口氣:“原來是場(chǎng)噩夢(mèng)啊……” “哼!你這毒婦竟也來了金闽?” 一聲冷哼從身側(cè)響起纯露,我...
    開封第一講書人閱讀 38,926評(píng)論 0 274
  • 序言:老撾萬榮一對(duì)情侶失蹤,失蹤者是張志新(化名)和其女友劉穎代芜,沒想到半個(gè)月后埠褪,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 45,341評(píng)論 1 311
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡挤庇,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,563評(píng)論 2 333
  • 正文 我和宋清朗相戀三年钞速,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片嫡秕。...
    茶點(diǎn)故事閱讀 39,731評(píng)論 1 348
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡渴语,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出昆咽,到底是詐尸還是另有隱情驾凶,我是刑警寧澤,帶...
    沈念sama閱讀 35,430評(píng)論 5 343
  • 正文 年R本政府宣布掷酗,位于F島的核電站调违,受9級(jí)特大地震影響,放射性物質(zhì)發(fā)生泄漏泻轰。R本人自食惡果不足惜技肩,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,036評(píng)論 3 326
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望浮声。 院中可真熱鬧虚婿,春花似錦、人聲如沸泳挥。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,676評(píng)論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽(yáng)羡洁。三九已至玷过,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背辛蚊。 一陣腳步聲響...
    開封第一講書人閱讀 32,829評(píng)論 1 269
  • 我被黑心中介騙來泰國(guó)打工粤蝎, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留,地道東北人袋马。 一個(gè)月前我還...
    沈念sama閱讀 47,743評(píng)論 2 368
  • 正文 我出身青樓初澎,卻偏偏與公主長(zhǎng)得像,于是被迫代替她去往敵國(guó)和親虑凛。 傳聞我的和親對(duì)象是個(gè)殘疾皇子碑宴,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 44,629評(píng)論 2 354

推薦閱讀更多精彩內(nèi)容

  • 一、AdaptiveSizePolicy簡(jiǎn)介 AdaptiveSizePolicy(自適應(yīng)大小策略) 是 JVM ...
    阿菜的博客閱讀 19,517評(píng)論 4 29
  • 1桑谍、JVM的參數(shù)類型 1.1 標(biāo)準(zhǔn)參數(shù):在各jdk版本中較穩(wěn)定 -help-server -client-vers...
    大廠offer閱讀 9,350評(píng)論 0 8
  • JVM是虛擬機(jī)延柠,也是一種規(guī)范,他遵循著馮·諾依曼體系結(jié)構(gòu)的設(shè)計(jì)原理锣披。馮·諾依曼體系結(jié)構(gòu)中贞间,指出計(jì)算機(jī)處理的數(shù)據(jù)和指...
    Java小鋪閱讀 1,283評(píng)論 0 16
  • JVM參數(shù)分類 JVM參數(shù)分為標(biāo)準(zhǔn)參數(shù)和非標(biāo)準(zhǔn)參數(shù): 標(biāo)準(zhǔn)參數(shù): "-"開頭的參數(shù),如-client, -serv...
    齊晉閱讀 3,375評(píng)論 0 4
  • 今天第二天雹仿,由于下午增热,今天還是沒有開始采摘。早上忐忑走錯(cuò)站點(diǎn)沒車?yán)柿桑液脹]有錯(cuò)過哈哈峻仇。 上午跟著小哥哥測(cè)...
    Poetrylife閱讀 241評(píng)論 0 0