????Java??????????
???????????? ???????[ 2015/10/16 13:15:11 ] ??????????????? ???????????
????????“??????????????????”??“??????????????????”??????????????????? Java ??Java Champions??????д????????????????????????
??????Щ?????????????????????????????Щ?????????????????????????????????????????????Щ??????????????
?????????????????????????????????
?????????????????λ????????????????????????? MB/sec ??????????????????????????? PB/year ????????????????????——???????????????? Java ??????????????????????С??
???????????????????????????塣????????????????????????????????????????????ζ??????????????????????????????????????????? GC??Garbage Collection?? ???????????????????????????????????????????? GB/sec ????????????????????????????? 1 GB/sec/core???????????????????????????????????????
????????????????? GC ?????????????????????——????????????????????????????????????????????JVM ?????????????????????????????????????? GC ??е????? GC ???????
????????????????
??????????????????????????????? JVM ??????-XX:+PrintGCDetails -XX:+PrintGCTimeStamps ???? GC ??????????JVM ????????з????? GC ????????
????0.291: [GC (Allocation Failure) [PSYoungGen: 33280K->5088K(38400K)] 33280K->24360K(125952K)?? 0.0365286 secs] [Times: user=0.11 sys=0.02?? real=0.04 secs]
????0.446: [GC (Allocation Failure) [PSYoungGen: 38368K->5120K(71680K)] 57640K->46240K(159232K)?? 0.0456796 secs] [Times: user=0.15 sys=0.02?? real=0.04 secs]
????0.829: [GC (Allocation Failure) [PSYoungGen: 71680K->5120K(71680K)] 112800K->81912K(159232K)?? 0.0861795 secs] [Times: user=0.23 sys=0.03?? real=0.09 secs]
???????????? GC ????????????????????Young Generation??????λ??????С??????λ???????С????????????????????????????????????????????????
????JVM ???291??????????????С??33280K??????? minor GC ??????????????????С?? 5088K??
???????446?????????????????????????38368K??????????????? GC????? GC ?????????????????5120K??
???????829?????????????С??71680K??GC ????μ???? 5120K??
??????Щ?????????μ????????????????????????????????????????棺
??????????Щ?????????????????????????????????????????????161 MB/sec??
??????????
??????????????Щ??????????????????????????????????????? GC ??????????????????????????????????????????????????? Minor GC ????????????????????????????Old Generation????????????????????????????????????????????????????????promotion rate????????????????????????????????
?????????Щ????????????? Minor GC ???????????????????????????????????????????????????????????? Eden ???н??е????????????? Eden ?????С????????????????????????裬???? Eden ??????????minor GC ????????????????????????????????
??????????????????ò???? Eden ????С??-XX:NewSize -XX:MaxNewSize ?? -XX:SurvivorRatio?????????????????????????????????????????????????
???????? Eden ???100M????????????????????????????100MB/sec??
????????? Eden ????1GB????????????????? 200MB/sec??
????????????????????????——????????????? GC ?????????????????????????????????????????????????????????????????
?????????????ó?“ Eden ????????”?????????????????????????????????????????????????????????????????????????????????????????????? Minor GC ???????????????????????????????????????? Major GC ???????????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11