Monitoring servers while executing tests (using VisualVM)

When executing test scripts, it is important to monitor the server resources where the tested application is being hosted. Resources such as CPU, memory, thread count and thread pool, I/O resources, and so on are integral to the performance of an application. Monitoring these resources helps give crucial insights into where the bottlenecks lie in the tested application or hosted environment.

How to do it…

In this recipe, we will show you how to monitor application resources using VisualVM, a tool that comes bundled with standard JDK installation files. Perform the following steps:

  1. Install Maven, Git, and JDK 7 as described in the Appendix.

    Note

    The examples have been tested with JDK 7 only. ...

Get JMeter Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.