I'm about to undertake load testing of a web application that is suffering from intermittent failures in a production environment.
I have enabled some JMX monitoring on certain components, e.g. an OSCache implementation, with the goal of gathering its statistics around the time of failure to determine how/if it contributes.
I've been considering solutions that will allow me to collect the statistics about the application during load testing with SLAMD.
Possible solutions:
1. Integrate the JMX collection with SLAMD's server
Is there a way I can automated the collection with the server application, with BSF/Scripting?
2. Remote JConsole/JVisualVM
I'm concerned that this would put unnecessary load on the network, and affect the results of what we're trying to achieve...
3. Command line retrieval (e.g. jmx-client)
Possibly the best option, if we can run it on the application server to collect heap usage and the JMX statistics periodically.
Can anyone offer advice or experience on this?