Java???????????
???????????? ???????[ 2016/4/14 14:07:20 ] ??????????????? ???????????
????3.Mark-Compact?????-???????
?????????Copying?????????????????????????Mark-Compact????????????κ?Mark-Sweep??????????????????????????????????????????????????????????????????????????????檔?????????????????
????4.Generational Collection????????????
????????????????????JVM????????????????????????????????????????????????????滮?????????????????????????????????????????Tenured Generation????????????Young Generation??????????????????????????????????????????????????????????????????????????????д??????????????????????????????????????????????????
??????????????????????????????????Copying??????????????????????????????????????????????????????????????????????в????????1??1?????????????????????????????????????????????????Eden?????????С??Survivor?????????Eden???????е????Survivor????????л????????Eden??Survivor?л????????????????Survivor????У?????????Eden??????ù???Survivor???
????????????????????????λ??????????????????????????Mark-Compact????
???????????????????????????Permanet Generation???????????洢class??????????????????????????????????????????????????????????????
??????.??????????????
??????????????? ?????????????????????????????????????????????????????HotSpot??JDK 7)????????????????????????????????????????????????????????????????
????1.Serial/Serial Old
????Serial/Serial Old?????????????????????????????????????????????????????????????????????????????????Serial????????????????????????????????Copying????Serial Old???????????????????????????????Mark-Compact???????????????????Ч????????????????????????
????2.ParNew
????ParNew???????Serial???????????汾??????????????????????
????3.Parallel Scavenge
????Parallel Scavenge?????????????????????????????????????????????????????????????????????????????Copying??????????????????????????????????????????????????????????
????4.Parallel Old
????Parallel Old??Parallel Scavenge?????????????汾???????????????????????Mark-Compact????
????5.CMS
????CMS??Current Mark Sweep???????????????????????????????????????????????????????????????Mark-Sweep????
????6.G1
????G1???????????????????????????????????????????????????????????????????CPU????????????????????????????????????????????????????????????
???????油????1?????????????????
???????????????????????????????????????????????????????Eden Space??From Space??????????????????????????????????????Eden Space??From Space??????????????GC???????????GC???Eden Space??From Space??????????????Eden Space??From Space????GC??????У???Eden Space??From Space?е???????????To Space?????Eden Space??From Space???????????????????????У?To Space????????洢?????????????????????????С????????GC??????????Eden space??To Space????′?GC????????????From Space?????????????????????Survivor????????GC?????????????????1?????????£?????????????15???????????????С?
?????????????????????????????????ν?????????????????????洢??????????????????????????飬???磺
????byte[] data = new byte[4*1024*1024]
??????????????????????????洢???
??????????????????????????????????????????????????????????????JVM??????????
??????
???·???
??????????????????
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