????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}")));
????????