Chinaunix首页 | 论坛 | 博客
  • 博客访问: 660302
  • 博文数量: 53
  • 博客积分: 830
  • 博客等级: 准尉
  • 技术积分: 1089
  • 用 户 组: 普通用户
  • 注册时间: 2012-03-31 18:23
文章存档

2019年(1)

2018年(1)

2016年(1)

2015年(1)

2014年(12)

2013年(4)

2012年(33)

分类: Java

2014-08-22 12:29:24

Action()
{
double atof(const char *string);
web_reg_save_param("JVM_FreeMemory",
"LB=Free memory: ",
"RB= MB",
"Ord=1",
LAST);
web_reg_save_param("JVM_TotalMemory",
"LB=Total memory: ",
"RB= MB",
"Ord=1",
LAST);
web_reg_save_param("JVM_MaxMemory",
"LB=Max memory: ",
"RB= MB",
"Ord=1",
LAST);
web_reg_save_param("http_MaxThreads",
"LB=Max threads: ",
"RB= ",
"Ord=1",
LAST);
web_reg_save_param("http_CurrentThreadCount",
"LB=Current thread count: ",
"RB= ",
"Ord=1",
LAST);
web_reg_save_param("http_CurrentThreadBusy",
"LB=Current thread busy: ",
"RB= ",
"Ord=1",
LAST);
web_reg_save_param("http_MaxProcessingTime",
"LB=Max processing time: ",
"RB= ms",
"Ord=1",
LAST);
web_reg_save_param("http_ProcessingTime",
"LB=Processing time: ",
"RB= s",
"Ord=1",
LAST);
web_reg_save_param("http_RequestCount",
"LB=Request count: ",
"RB= ",
"Ord=1",
LAST);
web_reg_save_param("http_ErrorCount",
"LB=Error count: ",
"RB= ",
"Ord=1",
LAST);
web_reg_save_param("http_BytesReceived",
"LB=Bytes received: ",
"RB= MB",
"Ord=1",
LAST);
web_reg_save_param("http_BytesSent",
"LB=Bytes sent: ",
"RB= MB",
"Ord=1",
LAST);
web_set_user("admin", "admin","127.0.0.1:8080");
lr_think_time(20);
web_url("status",
"URL=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
lr_user_data_point("Tomcat JVM FreeMemory", atof(lr_eval_string("{JVM_FreeMemory}")));
lr_user_data_point("Tomcat JVM TotalMemory", atof(lr_eval_string("{JVM_TotalMemory}")));
lr_user_data_point("Tomcat JVM MaxMemory", atof(lr_eval_string("{JVM_MaxMemory}")));
lr_user_data_point("Tomcat http MaxThreads", atof(lr_eval_string("{http_MaxThreads}")));
lr_user_data_point("Tomcat http CurrentThreadCount", atof(lr_eval_string("{http_CurrentThreadCount}")));
lr_user_data_point("Tomcat http CurrentThreadBusy", atof(lr_eval_string("{http_CurrentThreadBusy}")));
lr_user_data_point("Tomcat http MaxProcessingTime", atof(lr_eval_string("{http_MaxProcessingTime}")));
lr_user_data_point("Tomcat http ProcessingTime", atof(lr_eval_string("{http_ProcessingTime}")));
lr_user_data_point("Tomcat http RequestCount", atof(lr_eval_string("{http_RequestCount}")));
lr_user_data_point("Tomcat http ErrorCount", atof(lr_eval_string("{http_ErrorCount}")));
lr_user_data_point("Tomcat http BytesReceived", atof(lr_eval_string("{http_BytesReceived}")));
lr_user_data_point("Tomcat http BytesSent", atof(lr_eval_string("{http_BytesSent}")));
return 0;
}

阅读(763) | 评论(0) | 转发(0) |
0

上一篇:控制台参数

下一篇:pps

给主人留下些什么吧!~~