???????????????????????????
????1?????????????
????2????????????????????????????????tps???????tps????????????????????????????????????????Χ????????????????????????????Щ???????Щ??????????Щ??????
????3?????????????????????????????????????????????????????????ó????????
????4??Э?飺??????Э?????????
????5???????????????????????????????????????????????????????????????????????????????tps????????????
????6??????????????????????ó?tps????
????7?????????????????????Щ??????????????Щ?????
?????????
????1?????????????????100?Σ???????????????????
????2???????10???????10???????????????????????
????3?????????????????tps?????????????????????pacing??vu?????????????????????????????????????????????????????С??????????????????????????????????VU???tps???????????????????????????????????????????????????????????tps??tps???????????AP cpu???????DB cpu???????????????????????????
???????????????С?????????????tps???????????tps?????????10???????????????????tps?????????tps*?????????????AP cpuС??60%??DB cpuС??80%??dump?????????????????????????????????????????????????
????4???????????????????80%??????????????24С????????????????е??????????????????tps????tps?????????????????????????????????????????????????????????????cpu???????????mem??????????????????????????fullgc??gc???gc???? fullgc???fullgc???????????JVM????????????fullgc??????
????????
?????????????????????????nmon????
??????????????????????????????
????????????????????cpu????
????1????vmstat?????cpu??????????С?????AP cpu?????80%?????????????60%??
????2????????use cpu???????sys cpu?????????????use cpu??ù????
????3???????sys cpu??ù???????????cpu?????????????top??????????????????????cpu????????????????????????????16?????????jstack??????dump??????????????????????????????use cpu?????
??????????????????????????????????????
????1??????????
????1)???????????????LR??????????java.lang.OutOfMemoryError.Java heap space??
????2)??jmap -histo pid????dump?????????????????????????20??????????????????ó?????????????????????????÷??????????????????????
????3)????20???????????????????jmap -dump??dump????棬????MAT????dump?????????棬?????????????????????
????4)?????ó??????????????????????JVM?????????xms??xmx????????????????????????????檔
????2?????????
????1)???????????????LR??????????Java.Lang.StackOverflowError??
????2)???jvm????????xss??????????????檔
????3)???????????????????????????????????????????
????3?????????
????1)????????????????????Java.Lang.OutOfMenoryError.PermGen Space??
????2)????????????????????????????????????????????????η????Щ??????????????????????3????????
????3)???jvm???????XX:MaxPermSize=256????????????????????????
???????????????
????1????????????????????LR??????????
????2????????????????????????????????м?????????????????????????????????????????????????????????????
????3??jstack????dump?????????????????????block??????е??????????????????????????????????????
????????????????
????1????????????????????LR??????????
????2????????????????????????????????м?????????????????????????????????????????????????????????????
????3????????????????block???????block??????????????????????????????????sql??????????????sql??
?????塢??????????????
????1????????????????????LR??????????
????2????????????????????????????????м?????????????????????????????????????????????????????????????
????3???????????ó??????????????ж?????? show full processlist??????????ó??????????????????????30????????????ó????????????????30?????????????????????????90?????????????????????90????????????????????????????μ??????????????????????????д????????????й????????????????????????????μ?????????ɡ?
????????TPS????
????1???????????tps???????????????tps?????????????fullgc??tail -f gc_mSrv1.log | grep full????
????2??pacing?????С?????tps?????????????????????????????ɡ?
????3??tps????????????????????????????????????????????????£???????????????????????????????????????????????tps????????????????????????tps????????????????????cpu??
????4??????????????г???????????????????
?????????????????????????1%-2%?????????
????1??????????????????AP?????cpu????60%?????????????60%?????
????2??????????????ж??????
????3????????????????????
????4???????????????????????????????????
????5?????????汾??????????????
????6????????????????ЩAP????????????????к????????????????????????????????????
???????fullgc??????
????1???????????????????????LR?????????????????????fullgc?????LR?????????????fullgc????????????fullgc???????????ó???????LR???????????????????????????old????棬???????fullgc???????fullgc???LR?????????????????о???????ó????????
????2?????AP??????full gc??????server fullgc??????server???fullgc???????????????????ò????server????fullgc?????????佻???????д??????????????
???????
??????????????error?2????
??????????????????????????????????????????????????????????