emeraldgold07
emeraldgold07

Reputation: 303

Setup monitoring for API load testing

I'm new to API Load Testing. Before we started to do API load testing, we need to configure some monitoring setup to monitor CPU usage and JVM heap memory as the test is executed. FYI I'm using Apache JMeter tool to execute the load tests.

For own exercise, I'm trying to do load test using this one sample REST web service: https://reqres.in/

How can I setup monitoring for the server of the sample web service when the web service is not hosted in my own PC? I've tried the JMeter plugin (Perfmon) but I guess this only works when the server is hosted at our own PC. Appreciate for your kind suggestions. Thanks!

Upvotes: 1

Views: 421

Answers (2)

Prateek7
Prateek7

Reputation: 9

Based on your environment set up & access:

  1. If you have rdp or ssh access to server(application under test) , you can use visualVm , Jconsole to monitor CPU & Heap memory.
  2. In case, you don't have access to remote server - then please work with IT or concerned team to help you configure these tools by opening remote JMX port for performance monitoring.

Upvotes: 1

Dmitri T
Dmitri T

Reputation: 168147

but I guess this only works when the server is hosted at our own PC - that's not true, you can monitor whatever host where the PerfMon Server Agent is running.

Of course you will need access to the host in order to launch the PerfMon Server Agent so you cannot deploy it onto a random machine in the Internet.

Alternative option is using SSHMon Listener, in this case you don't need to install anything but you need to have SSH connectivity to the machine(s) you want to monitor.

Upvotes: 0

Related Questions