1, ServerAgent is a plug-in Jmeter monitoring resources, the default port is 4444, download ServerAgent package, the internal structure is as follows:
2, such as the current environment for the windows environment, you can double-click to start startAgent.bat
3, such as the current environment for the Linux environment, sh startAgent.sh file to
4, modify the default port of 4444 ServerAgent
- 4.1, windows environment in cmd into the command window ServerAgent root directory, execute: java -jar ./CMDRunner.jar --tool PerfMonAgent --udp-port 8888 --tcp-port 8888 can see the port from the original 4444 changed to 8888
- 4.2, Linux environment ServerAgent into the root directory, view startAgent.sh file, you can see that the file will be defined as a port 4444, modify the file port 8082, then SH
startAgent.sh can be seen from the original port modified 4444 8082
4.3 telent host port can verify whether the service can be accessed by an external, below indicates success
Forced to kill a linux port process commands, such as port 4444:
查看端口:
netstat -nlp|grep 4444
杀掉进程:
sudo fuser -k -n tcp 4444