????????????
???????????? ???????[ 2014/8/21 13:55:11 ] ??????????????? ???????
????1.??????TPS
???????????????????????TPS??Transaction Per Second?????????????????λ????????????????????TPS?????????????????????????
????TPS???????????????Transaction??????????
??????????????????У??????????????TPS??Transaction Per Second?????????????????????????????????????????????????λ?????????????????????????????λ?????????????????????????????/???????/???????/С????????????????????????????????? ????????/????
?????????????????????????????“??????”?????“?????????”??“??????”???????????????滮???????????????????“??????”??????????????????????????????????
?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ?????? = ??VU???? * ???VU???????????? / ??λ?????????????????????????????VU????????????????????
????2.????????????
????????thread????”????”??????????????????????????????????
????????????
????1 ??????????????????????
????2.??JAVA?????????μ???????У????У????/????/??????????????????????δ????????£??????????????????е?????л?????????????????£??????л??????????????л???
????3.???????????????????????????????????????以???????????????
????4 ??????????У????????ú????????????Χ?豸???й???????????
??????????????????????????е???????????????
????ps:JAVA?п??????jstack????jprofiler dump?????????е????????
????3.????????????
??????????????????????????????
???????????????????????????????????????????????????????????????????????????????????Transaction Response Time????????????
????????????????????????????????????????????
?????????????????????????????“??????”?????“?????????”??“??????”???????????????滮??
???????????????????????????????????????
????4.?????????????????????
??????????????????????????????°? http://www.docin.com/p-452373613.html
????5.????????????TPS??????????????
????????????????????????δ?????????????????????TPS???????????????????????????????????????TPS??????????????????
????6.??LoadRunner?????????????????pacing?
????1??Think time??????????????????????????????????????????????е???????????????????think time????iteration????????action?и?????????????
????2??Pacing??????????????????????ε?????iteration?????????????????????action??????????????????????
????3??pacing??think time??????????????????е??????????????????????????pacing????ɡ???????pacing??????ò???????????о???????????????
??????????
????1.????ж?CPU????楨??????????
????CPU?????
????1) ??CPU???????????CPU???????
????a) User Time??65%??70%
????b) System Time??30%??35%
????c) Idle??0%??5%
???????us??sy??????????????ж?CPU?????
???????top??
?????????ж???
???????CPU?????????????ж??У?????????£?????????????????е???????С???????????sleep????run able???????CPU????????????????????????????????????е????????????С?????????????????????????“load”??????????ж??У???top ??????????????CPU??????5?????15??????????ж??е??С????????????????????????? 1.00????????CPU????????????????????????
???????top????uptime??
?????????????л?
???????CPU??????CPU??????????????????????????????Linux???????????????????????????????????????????????????????IO??????????????????????Linux???л???е????????л????洢?????????????????????е?????????????????????????л???????java???????????????????IO??????????IO????????????????sleep???????????????????????????????????????????л??????????л??????????????ù????CPU??????????????????????
???????vmstat??cs
?????????
???????system?????ж??У???????????????????????3??????????????????.
???????CPU ????????user/system?????????70/30
??????CPU ??????????????system mode?????????????????????ó??????μ????????
??????I/O ????????????CPU ??????????????????
????ps:????JAVA????CPU??????????jprofiler??????
????????????
????1.????????(free)
????used:???????
????free:?????ж????
????Shared:????????????????
????Buffers/cached:?????????С??
????2.?????????swap??????po??pi??so??si????????IO(vmstat)
????si: ?????????д???????С
????so: ???д????????????С
????page in :???(Page)???????????????????????Page-In
????page out : ???(Page)д??????????????Page-Out
????????????????????????????????IO?????????bi??bo
????Bo ???????????浽????????豸?????
????Bi ?????????????????豸?????????
????3.page fault??pidstat -r??sar -B )
????minflt/s: ?????????????(minor page faults)???????????????????????????????????????????page fault????
????majflt/s: ??????????????(major page faults)??????????????????????????????????page??swap?У???????page fault?major page fault????????????y????????
??????
???·???
??????????????????
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