写在前面的话, 作者认为jmeter的监控被测服务器资源只是基本可用, 还好习惯了linux的各种命令和工具,所以也基本不用担心什么了.但是有了图形化的监控, 也方便给领导出报告. 怎么说也是不错的.

在准备正式开始性能测试时,发现,原有的服务器端性能监控的方案,无法通过非GUI模式保存性能数据,而且所记录性能数据比较单一,只有内存的使用情况;所以尝试其他方法;

找到的方法

http://jmeter-plugins.org/wiki/PerfMonAgent/?utm_source=jpgc&;utm_medium=link&utm_campaign=PerfMonAgent

是jmeter官方发布的一个专门作用做web服务器性能监控的工具,包括两部分,需要下载

JMeterPlugins-Standard-1.1.1.zip,

安装到Jmeter之后就会多一个监视器

其次需要下载 ServerAgent-2.2.1.zip

这个是服务器代理,在需要监控的服务器上运行用来采集并向测试机发送服务器信息;

使用方法

$ ./startAgent.sh --udp-port 0 --tcp-port 3450
INFO 2011-11-25 19:02:14.315 [kg.apc.p] (): Binding TCP to 3450

下面是官网的简介 jmeter很好很强大呀

Servers Performance Monitoringsince 0.3.0

Introduction

During a load test, it is important to know the health of the servers loaded. It is also nice to see if you are targeting a cluster if the load is correctly dispatched. To address this, the plugin package now supports server monitoring! Using it, you can monitor CPU, Memory, Swap, Disks I/O and Networks I/O on almost all platforms!

Here is how the plugin looks like. It shows the CPU usage of 4 servers involved in the load test:

Metrics collected

Since version 0.5.0 the Server Agent tool supports collecting over 75 system metrics. See full list.

How it worksConcept

JMeter cannot retrieve by default server metrics except Tomcat ones. To overcome this situation, we have developed a server agent which will get performance data for JMeter. The agent uses the SIGAR open source library. It is composed of a Java common part and native libraries per OS.

Installation

Server Agent tool detailed description is placed here.

UsageGUI Mode

In GUI mode, just add the listener, define servers and metric types to monitor, ensure the agent is running at remote server and is not blocked by a firewall, then run the test. The values will be displayed at real time chart.

Non GUI Mode

If you run JMeter in non GUI mode and want to save monitoring data to file, just configure result file saving in GUI as you do with other listeners. After running the test you may load saved file into GUI and see the values timeline.

最新文章

  1. avalon框架
  2. 在word中显示漂亮的代码
  3. 计算json的和
  4. 《Pointers On C》读书笔记(第三章 数据)
  5. 【AC大牛陈鸿的ACM总结贴】【ID AekdyCoin】人家当初也一样是菜鸟
  6. Spark之Pipeline处理模式
  7. elasticssearch+kibanna入门(撰写中)
  8. Codeforces Beta Round #34 (Div. 2)
  9. java基础-day26
  10. linux文件名称查找which,whereis,locate
  11. 一、final关键字
  12. MT【123】利用第一次的技巧
  13. 2018-2019-2 网络对抗技术 20165322 Exp3 免杀原理与实践
  14. linux 下 chkconfig安装与使用详解
  15. 【LG3723】[AHOI2017/HNOI2017]礼物
  16. 工作笔记——dom属性巧用
  17. 爬虫——URL模块爬取糗事百科段子
  18. 微服务学习笔记二:Eureka服务注册发现
  19. canvas制作倒计时炫丽效果
  20. jquery——动画

热门文章

  1. Linux下MySQL 命令导入导出sql文件
  2. 利用float与overflow:hidden实现移动端两栏自适应布局
  3. 最长回文子串 —— Manacher (马拉车) 算法
  4. Cocos2d-x打包安卓apk
  5. swiper.js 响应式多图轮播特效
  6. git 更新代码
  7. C++中的函数重载分析(二)
  8. HDU 1398 Square Coins(DP)
  9. Https socket 连接
  10. RemoteDisconnected: Remote end closed connection without response