???????????????????Щ???????
???????????? ???????[ 2015/7/31 11:08:49 ] ??????????????? ???????
????1. LoadRunner????????????????IE???????
??????????????????Internet????????л??????????????“?????????????????????????????”????????????????VuGen????????????????а???????????????IE6???????IE6->????->internet???->???????"?????????????????"?????????????"???".???????IE??????????
????2. HTML-based script??URL-based script????????????
?????????“HTML-based script”???????????VuGen?????????HTML???????????????裬?????????????????????“URL-based script”??????????VuGen???????????????????????????????????????HTTP??????????????????????????????????
????????????????????Web???????“HTML-based script”???????????????л??????????Web??á?Web????а???????????????н?????Java Applet?????????????????а????????????????????JavaScript/VBScript?????????????????????????HTTPS???Э?飬??????“URL-based script”??????????
????3. Loadrunner??????Vuser_init??Action??Vuser_end??????
????????????????????????"Vuser_init"??"Action"??"Vuser_end"3???????"Vuser_init"??"Vuser_end"?????????????????????"Action"??????????????????????????μ?????
????"Vuser_init"???????????????????????????????"Vuser_end"??????????????????????????????????????????????Σ???"Action"???????????????ж?Ρ?
????4. ???????????????????????
????static { authenticateLicense(); /* * alex:??????С?????????Session *????????????????? * *?????????????????????????????closeSession *???????????????????????????????????????30???????setInterval??ajax???*??ajax??е?????????setInterval????????????????30??????Σ???????????????* *?????6.5.3??SessionIDInfor???????isActive??????????updateSession??????true?????ReportServlet???????request??????false *???isActive?false??????????????* *?????????????????????* *??????code????????????????£?????????????????????????????????????session????б??????*/ new Timer().schedule(new TimerTask() { public void run() { if (ConfigManager.getInstance().isLicUseLock()) { authenticateLicense(); } removeTimeoutSessions(); } }?? 600000?? 600000); }
?????????????????????????????????????????????????session????????????????????????????????????????session??????????????????????????????>=1??session???????????? session?????????session??????100????session????????3???????????3??????105??session????????5??session???????????????й??session??????????session????????????lr?????????????????????????????????????
????5. ??Controller??????Web???????????????????к??????????????δ???????????
????????????н??????????????????????Web????????????????????????????????????????????????????????????????á?
????????“Run-time Setting”?????????ν???“Internet Protocol→Preference”???????“Options…”?????????????????????????????????????????
????6. LoadRunner???????????????????
????????sessionID??????????????????????η??????????sessionID??????????????????sessionID???????????sessionIDд??????????????η???????????sessionID????棬??????????????????????????????????sessionID??????????????У????????????á?
???????y???????????????sessionID????У????–>scan for correlations??????????????????棬????μ?show differences in???????????all action?????loadrunner??reply????????????sessionID??????????????????????????????????????????????????????????????correlation ?????????????????????????????????????????????????????塣
????7. ???Windows???е?CPU??????????????????????????????????????
????????Windows??????????????£?????????????????????ü????Vuser???????????CPU???????????????????????漲?????????????????????????Windows?????????????Windows???????Windows XP Professional?????
??????1???????????????????HKEY_LOCAL_MACHINE?е????й?????SystemCurrentControlSetControlSession ManagerSubSystems??
??????2?????Windows??????Windows??????????????
????%SystemRoot%system32csrss.exe bjectDirectory=Windows
????SharedSection=1024??3072??512 Windows=On SubSystemType=Windows ServerDll=basesrv??1
????ServerDll=winsrv:UserServerDllInitialization??3 ServerDll=winsrv:ConServerDllInitialization??2
????ProfileControl=Off MaxRequestThreads=16
????SharedSection=1024??3072??512?????????xxxx??yyyy??zzz?????У?xxxx??????????Χ?????????KB???λ????yyyy??????????????С??
??????3????yyyy???????3072?????8192????8MB????????SharedSection???????
?????????????????????????????и??????????????????????????и????Vuser??????ζ?????????????????????????Windows????????????????????????????????????????????
????8. ????ó??????????з?????????????У?????????????????????
????????VuGen??????????????????“Run-time Settings”?????????ν???“General→Miscellaneous”?????????Miscellaneous?????й???“Error Handling”?????á????“Continue on error”???????????????????????????С?
????9. LR???г??????μ??windows????
????1???????????????windows?????????????????Remote Procedure Call(RPC)??Remote Registry Service?????????????“???????”?μ?“????”??
????2?????????WINDOWS????:????????????????->?????????->???? ???????????C$???????????У?????н?????????
????3??????????????.????\?????????IPC$??????????????????????????????????????C??????????????????????????????? ????????????????????????LoadRunner??controller?м??windows??????????裺??“windows resources”????????????????“add measurements”????“windows resources”?????“add”????????IP????“resource measurement on”??????????????????????
????10. ???LoadRuner??????????ó???1000?????????????????????
???????loadRunner????vuser????1000????????vuser?????????Controller???????Generators -->Disable????Vuser Limits???????????
????11. ????????wsa_io_pending
????IO Overlapped???????IO????socket??????????????????????create new thread??send?? receive????????????????????????????????????????????????????????????????У????????????????CPU???????????????????????????????????????????????tomcat?????
????12. TOMCAT????????
????maxThreads??tomcat???????????????????????????????????200
????acceptCount????tomcat??????????????????????????????????????100
??????????????????????????????????
???????1????????????????tomcat???????????е???maxThreads??tomcat?????????????????????
???????2????????????????tomcat????????????????maxThreads??tomcat????????????????У????????????
???????3????????????????tomcat????????????????maxThreads??????????е?????????????acceptCount?????tomcat??????????????????connection refused
????maxThreads???????
????????????????????????????棺1???????????cpu????2?????io??????????
??????????????????????????????????????????????????????????cpu???????????????maxThreads??t??????С?????????????????cpu????????????????????Ч?????????????崦????????
??????????????????????????????????IO?????????????????????????????????????????maxThreads??t??????????? ???????????????????????????????????????????????????????tomcat???????????????????????????????tomcat????????? ?????ú?linux??open file?????
???????????У????????????????????????????????????????????maxThreads?????ò???????????????????????????????á?
?????????????????????????????????????????????????????????á?
????acceptCount????????????????????maxThreads???????????????????????????????????????????????
???????????С???????????????????????????????????????????????
???????????????????????????????????????????????????????????????
??????
???·???
??????????????????
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