Monitoring servers while executing tests (using New Relic)
When you are profiling an application that is deployed in the Cloud, using any of the other discussed profiling methods cannot work. In such cases, if the Cloud provider offers integration with New Relic (which most do), then you can profile the application using the method described here.
New Relic (http://www.newrelic.com) is an application performance management and monitoring tool. It allows you connect to your applications running on Cloud servers and get performance metrics and insights like you would get when running locally. It's a commercial tool, but they do offer a free account that is sufficient for us to illustrate the concepts in this recipe.
How to do it…
In this recipe, we will show you can monitor your server and application resources using New Relic. Perform the following steps:
Install Maven, Git, and JDK 7 as described in the Appendix.
Note
The examples have been tested with JDK 7 only. At the time of writing, they...