【发布时间】:2019-02-01 09:47:25
【问题描述】:
我目前正在调查 Minecraft (original post) 游戏中的性能错误。我需要检查的最后一件事是垃圾收集器的输出。当我这样做时,我注意到 99% 的输出都是 [GC (Allocation Failure).... 以下是输出的一个小样本:
13.238: [GC (Allocation Failure) 805728K->167001K(1601024K), 0.0251328 secs]
13.907: [GC (Allocation Failure) 805977K->167208K(1618432K), 0.0257168 secs]
14.559: [GC (Allocation Failure) 802088K->167520K(1597440K), 0.0262393 secs]
15.257: [GC (Allocation Failure) 802400K->168597K(1622016K), 0.0281692 secs]
15.925: [GC (Allocation Failure) 805525K->170531K(1618944K), 0.0202619 secs]
27.474: [GC (Allocation Failure) 807459K->178239K(1626624K), 0.0239986 secs]
27.884: [GC (System.gc()) 215249K->179128K(1624576K), 0.0286153 secs]
27.913: [Full GC (System.gc()) 179128K->167443K(1624576K), 0.4367059 secs]
这到底是什么意思?我找到了一个正在谈论它的another post,但我不太明白它们的意思。谁能用“婴儿语言”向我解释一下?
【问题讨论】:
标签: java garbage-collection garbage