LR监控JVM
来源:互联网 发布:台湾ptt评淘宝用语亲 编辑:程序博客网 时间:2024/06/03 18:06
double atof (const char *string);
//¶¨ÒåtomcatÄÚ´æʹÓÃÇé¿öµÄ¼àÊÓÆ÷ÊÂÎñ£»
lr_start_transaction("monitor tomcat");
//±£´æ3¸ö²ÎÊý£»
web_reg_save_param("JVMFreeMemory",
"LB=Free memory: ",
"RB= MB",
"Ord=1",
LAST);
web_reg_save_param("JVMTotalMemory",
"LB=Total memory: ",
"RB= MB",
"Ord=1",
LAST);
web_reg_save_param("JVMMaxMemory",
"LB=Max memory: ",
"RB= MB",
"Ord=1",
LAST);
/**
<h1>http-8080</h1><p> Max threads: 150 Min spare threads: 25 Max spare threads: 75 Current
thread count: 25 Current thread busy: 2<br>
Max processing time: 78 ms Processing time: 0.124 s
Request count: 11 Error count: 3 Bytes received: 0.00 MB Bytes sent: 0.03 MB</p>
*/
web_reg_save_param("HTTPMaxThreads",
"LB=Max threads: ",
"RB= ",
"Ord=2",
LAST);
web_reg_save_param("HTTPCurrentThreadCount",
"LB=Max threads: ",
"RB= ",
"Ord=2",
LAST);
web_reg_save_param("HTTPCurrentThreadBusy",
"LB=Current thread busy: ",
"RB= ",
"Ord=2",
LAST);
/*
<h1>jk-8009</h1><p> Max threads: 200 Min spare threads: 4 Max spare threads: 50 Current thread count: 8 Current thread busy: 6
<br> Max processing time: 8031 ms Processing time: 199.1 s Request count: 11279 Error count: 426 Bytes received: 0.00 MB Bytes sent: 100.88 MB</p>
*/
web_reg_save_param("JKMaxThreads",
"LB=Max threads: ",
"RB= ",
"Ord=1",
LAST);
web_reg_save_param("JKCurrentThreadCount",
"LB=Max threads: ",
"RB= ",
"Ord=1",
LAST);
web_reg_save_param("JKCurrentThreadBusy",
"LB=Current thread busy: ",
"RB= ",
"Ord=1",
LAST);
//ͨ¹ýLRÈ¥·ÃÎÊtomcat¼à¿ØÒ³
web_set_user("admin","123456","192.168.1.30:8898");
web_url("status",
"URL=http://192.168.1.30:8898/manager/status",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTTP",
LAST);
lr_end_transaction("monitor tomcat", LR_AUTO);
// Tomcat JVM metrics ʹÓÃlr_user_data_point£¨£©Ìí¼ÓÊý¾Ýµ½Í¼±íÖÐÈ¥
lr_user_data_point("Tomcat JVM Free memory", atof(lr_eval_string("{JVMFreeMemory}")));
lr_user_data_point("Tomcat JVM Total memory", atof(lr_eval_string("{JVMTotalMemory}")));
lr_user_data_point("Tomcat JVM Max memory", atof(lr_eval_string("{JVMMaxMemory}")));
lr_user_data_point("Tomcat JVM Avalaible memory", (atof(lr_eval_string("{JVMMaxMemory}"))-atof(lr_eval_string("{JVMTotalMemory}"))+atof(lr_eval_string("{JVMFreeMemory}"))));
- LR监控JVM
- LR监控windows资源
- LR监控ORACLE
- LR监控RedHat
- lr监控linux
- LR监控LINUX资源
- LR 监控Linux服务器
- LR监控配置
- LR监控服务器
- LR监控Windows资源
- LR远程监控服务器
- LR监控tomcat
- LR监控Apache性能
- LR监控Windows资源
- jvm监控
- JVM 监控
- JVM 监控
- JVM监控
- Mtk.Http
- input subsystem
- APP初始化函数和Dialog初始化函数的区别
- Sinatra
- Mtk.DownLoad
- LR监控JVM
- phpMyAdmin简明安装教程
- 学习单例模式的体验,低级错误耗了俩小时
- Cairo 图形指南(1) —— 基本绘图
- MYSQL的MERGE存储引擎
- Eclipse配置PyDev插件
- 游标遍历表
- hibernate性能优化
- 测绘行业软件