The application I'm testing has two servers and I want to monitor and view the server performance. Please explain in simple layman language.
2 Answers
It's easy to implement. Please see the How to Monitor Your Server Health & Performance During a JMeter Load Test, which will guide you step by step to measure the server-performance!!!
Hope, this will help you!!
-
Tried this already. But people tell me that this will give me the stats of my localhost not of the servers where the application resides. Commented May 16, 2016 at 7:36
-
You can monitor the server performance where the application resides. :) So, tell me what you have tried so far. I can help you. Thanks– JahanCommented May 16, 2016 at 7:40
-
That's what I've done thus far. Download JMeterPlugins-Standard-1.4.0.zip and JMeterPlugins-Extras-1.4.0.zip, unzipped them and placed the jar file in lib/ext. Downloaded server agent zip, unzipped it and ran in on my laptop which is windows via startAgent.bat. Then started Jmeter and uploaded my script, added the jp@gc- Perfmon Metrics Collector listener. Then I clicked on add row and localhost and 4444 came prefilled in Host/IP and Port sections respectively. I ran my script and graph shows results as well! Are these results of the servers or my localhost? I'm really confused. Thanks! Commented May 16, 2016 at 7:51
-
Yes, that's your localhost results. You can also monitor the server (where your tested application resides).– JahanCommented May 16, 2016 at 8:21
-
1To do this, 1. Install server-agent in your tested application server. 2. edit jmeter.properties like below: remote_hosts=xxx.xxx.xxx.xxx(tested server IP):4444 3. Now start your test from any machine and monitor the server performance using jp@gc- Perfmon Metrics Collector listener.– JahanCommented May 16, 2016 at 8:28
If by server performance you mean server's health and resource utilization, then,
There is no built option for monitoring server health in JMeter. But, don't be disheartened, there is a plugin available for it. Name of the plugin is PerfMon Server Agent. You can download it from here. Documentation and tutorial for same are available here.
To install the Server Agent (ON YOUR SERVER):
- Download Server Agent zip file.
- Unzip file and place entire folder on your server (Make sure JRE is installed and configured on your server).
- From within the Server Agent folder execute startAgent.bat(windows) or startAgent.sh(Linux). Keep this file running.
To setup and run your test to monitor server health you will need PerfMon Metric Collector listener in your JMeter instance. For this (ON YOUR SYSTEM WHERE YOU WILL RUN JMETER),
- Download StandardSet plugin from Jmeter-Plugins site.
- Extract the contents of zip file in your JMEter's root directory.
- Start Jmeter and add your test plan to it.
- Add PerfMon Metrics Collector listener to your test plan.
- Add IP of your servers along with Port Number (default is 4444) and select the Metrics to collect.
- Save your test plan and execute it.
- You will see that your server health will be displayed in the chart in PerfMon Metrics Collector listener.
If by server performance you mean how much load your server can handle, then, I guess that is what JMeter actually does!