??????????
???????????? ???????[ 2014/2/28 11:07:53 ] ??????????????? ???????
????????????????????????????????????漰???????????????????????????????????????????????е??????????????У?????????????????????
???????ò???????????????????????????KV??????????tair????????????????tair?????????????????衣
????1. ?????????????
?????г??и??????????????????в???????????????????????????????????????????????????????????????????
?????磬?????????????????**????????????????PV?????1000W????????????1000W???????????????????20ms?????????????????????????????PV????????????????????????????????????????
????2. ?????????
??????????????????????????????????TPS????????(??????????????????????)??
??????80/20?????н??з????80%????????????20%?????Ρ?
???????????????????
????Tps = (PV??*0.8/3600*24*0.2)/??????=9300/6 = 1600(1543)
????Tps = (1000/?????????)*????????? => ??????= tps*????????? / 1000 = 20(12.8)
???????????????
????tps=1С?pv??/3600/?????? = 2400(2314)
?????????? = 60(19.2)
????3. ???????
???????????????????????????????????????cat /proc/cpuinfo;cat /proc/version;df -h;free -m
????????????????jmeter??л?(???????????)??
??????????????????Cobar?????????????????????
????4. ??????????
?????????????java??jetty?汾???????????????????????????????????????????????£????????????????μ????????????????????????????????????????????????????????????????????
????5. ??????????
???????antx?????漰?????ip??????????ip???????????????????л??棬??????
????????????????dubbo????????????????????????????????
????6. ???????????????????
???????????http??????jason?????????????????Java??????? ?? ( ???????????1С???峽????8С????????!)
????jmeter???????????????????????????????jmeter??????????????????????http????????????????????????eclipse????????????
????7. ??????????л?
????????????????????????л????jmeter?????????
???????????????copy??jmeter??????л???????????????? JMeter -n –t ****.jmx
????8. ??У???????
????1. ???????????$vajra/vajraJmeter/vajra-jakarta-jmeter/bin/jmeter -n -t unReadMsgCounthigh.jmx -l unReadMsgCounthigh.jtl > unReadMsgCounthigh.log &
????2. ??????jvisualvm??jconsole?????????????????????????jvisualvm ??????jmx???
????3. netstat -na |grep 10.20.141.18
????jstat -gcutil 18607 1000 1000
????9. ???????
?????????????????????б??????????????????????????????
????1. ?????????????????????
????2. ???????????
????3. ????
????4. ??????
????10. ???
??????jconsole??vmvisual???
????# Add jmx parameters
????JAVA_OPTS="$JAVA_OPTS -Djava.rmi.server.hostname=10.20.159.81 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9991 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"
????10.20.159.81 ?????????ip
????JAVA?????????????????????????
????JAVA_OPTS=" -server -Xms512m -Xmx512m -XX:PermSize=128m "
??????
![](/images/ad-banner/ad-banner.png)
???·???
??????????????????
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