进行性能测试时的一个重要环节是资源监控。在采用LoadRunner进行压力测试时,LR默认提供了一些监控手段,但是功能不够强大,可以结合SiteScope、Hyperic HQ等监控工具进行资源监控。
Hyperic HQ简介:
Hyperic HQ is the award-winning open source monitoring software designed to manage web applications and infrastructure. Hyperic HQ's unique ability to automatically discover and monitor software and network resources, regardless of type or location, gives you a unified view of the performance and health of your applications. Use HQ's comprehensive suite of tools to track performance and event data, create complex alerts, run diagnostics, and issue control actions from a single remote console.
With built-in support for more than 75 technologies, an extensible framework and user interface, and support for both virtualized and non-virtualized infrastructures, Hyperic is the standard for web and IT operations teams of all sizes.
There are two editions of Hyperic HQ. The open source edition, licensed under GNU GPL v2, provides all fundamental capabilities for managing web applications. Powerful, reliable, and free, open source HQ is supported by a vibrant community of web operations professionals.
Hyperic HQ 分为开源版本和企业版本,开源版本叫Hyperic HQ Opensource,下载地址:
http://www.hyperic.com/downloads/hyperic-hq-open-source-downloads.html
HQ采用的是Server-Agent的监控模式。Windows平台的msi安装版本包括了Server和Agent的安装包。
下载并安装后,启动HQ服务,然后就可以按readme文件的指示来访问Dashboard进行监控管理了:
You can start and stop your HQ Server by selecting the "Start Server" and "Stop Server" shortcuts respectively under the Hyperic application group in the Windows Start menu.
Alternatively, you can then use the Service Control Manager (Control Panel->Services) to manually start and stop the Hyperic HQ server. Note that the first time the HQ server starts up it may take several minutes to initialize. Subsequent startups will be much faster.
Once the HQ server reports that it has successfully started, you can log in to your HQ server at:
http://192.168.1.100:7080/
username: hqadmin
password: hqadmin
To change your password, log in to the HQ server, click the "Administration" link, choose "List Users", then click on the "hqadmin" user.