使用JMeter压测Websocket协议,需要下载Websocket插件。下载本资源(JMeterWebSocketSampler-1.0.2-SNAPSHOT.jar、websocket-api-9.1.1.v20140108.jar、websocket-client-9.1.1.v20140108.jar、websocket-common-9.1.1.v20140108.jar、jetty-http-9.4.12.v20180830.jar、jetty-io-9.4.12.v20180830.jar等),解压后拷贝到JMeter的安装目录下的..\apache-jmeter-3.1\lib\ext路径下,重启JMeter,即可简历Websocket的长连