LoadRunner?????Tomcat
???????????? ???????[ 2016/5/4 14:15:45 ] ?????????????????? LoadRunner
????LoadRunenr??м??Tomcat????ü???????????lr?????tomcat?????????????Tomcat?????Status??????????lr????????????????????????????????lr???????????С?
????1????Tomcat??status??棬???????Tomcat??conf???μ?tomcat-users.xml???????????????
????1 <tomcat-users>
????2 <role rolename="manager"/>
????3 <user username="admin" password="admin" roles="manager"/>
????4 </tomcat-users>
????2??LR???????
????1 lr_start_transaction("monitor tomcat");
????2 web_reg_save_param("JVMFreeMemory"??
????3 "LB=Free memory: "??
????4 "RB= MB"??
????5 "Ord=1"??
????6 LAST);
????7 web_reg_save_param("JVMTotalMemory"??
????8 "LB=Total memory: "??
????9 "RB= MB"??
????10 "Ord=1"??
????11 LAST);
????12
????13 web_reg_save_param("JVMMaxMemory"??
????14 "LB=Max memory: "??
????15 "RB= MB"??
????16 "Ord=1"??
????17 LAST);
????18
????19 web_url("status"??
????20 "URL=http://{ServerName}/manager/status"??
????21 "Resource=0"??
????22 "RecContentType=text/html"??
????23 "Referer="??
????24 "Snapshot=t1.inf"??
????25 "Mode=HTTP"??
????26 LAST);
????27
????28 lr_end_transaction("monitor tomcat"?? LR_AUTO);
????29
????30 // Tomcat JVM metrics
????31 lr_user_data_point("Tomcat JVM Free memory"?? atof(lr_eval_string("{JVMFreeMemory}")));
????32 lr_user_data_point("Tomcat JVM Total memory"?? atof(lr_eval_string("{JVMTotalMemory}")));
????33 lr_user_data_point("Tomcat JVM Max memory"?? atof(lr_eval_string("{JVMMaxMemory}")));
????????
??????
???·???
??????????????????
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