Jmeter ServerAgent modify port (linux environment and windows environment) and the strong kill the 4444 port

1, ServerAgent is a plug-in Jmeter monitoring resources, the default port is 4444, download ServerAgent package, the internal structure is as follows:

Here Insert Picture Description
2, such as the current environment for the windows environment, you can double-click to start startAgent.bat
Here Insert Picture Description

3, such as the current environment for the Linux environment, sh startAgent.sh file to
Here Insert Picture Description

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

Here Insert Picture Description

  • 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
    Here Insert Picture Description
    Here Insert Picture Description
    Here Insert Picture Description
    Here Insert Picture Description
    Here Insert Picture Description
    4.3 telent host port can verify whether the service can be accessed by an external, below indicates success

Here Insert Picture Description

Forced to kill a linux port process commands, such as port 4444:

查看端口:
netstat -nlp|grep 4444
杀掉进程:
sudo fuser -k -n tcp 4444

Here Insert Picture Description

Published 82 original articles · won praise 43 · views 180 000 +

Guess you like

Origin blog.csdn.net/liudinglong1989/article/details/103069467