When we use LR for performance testing, we often need to monitor the resource usage of the OS. For Windows systems, this work is very convenient. You can directly add the name or IP address of the machine to be monitored in the LR Resource Monitoring window, but for Linux/Unix systems, this is a little more complex. Here I will briefly introduce how to monitor the resource usage of Linux/Unix systems in LR:
Linux
For Linux systems, to monitor resource usage of Linux/Unix systems through LR, you need to run the rstatd service. If rstatd is not installed on the OS (you can check whether the file rpc. rstatd exists in the system. If no file exists, it indicates that rstatd is not installed on the system), you need to install it.
The steps for installing rstatd are as follows:
Rstatdinstaller (rstatd.tar.gz ). Rstatd can be obtained from the redhat installation CD or downloaded from the website (A sourceforge: // heanet.dl.sourceforge.net/sourceforge/rstatd ).
Copy rstatd.tar.gz to the Linux system, decompress it, grant the executable permission, go to the rpc. rstatd directory, and execute the following commands in sequence:
#./configure#make#make install |
Run the./rpc. rstatd command to start the service. At this time, you can monitor Linux resources in LR.
Unix
For Unix systems, such as Solaris, AIX, or hp ux, their configuration process is relatively simple-in inetd. remove the comment before rstatd In the conf (in the/etc directory) file, and then start the rstatd service.
Related Articles]
- System security policies for preventing buffer overflow attacks in Linux
- Linux Security Settings Manual