websocket連接過程中內存溢出,本機配置的內存最大和最小設置的512;
一、后台返回

二、結果樹返回:
Thread Name: 線程組 1-9
Sample Start: 2017-09-11 13:59:49 CST
Load time: 9006
Connect Time: 0
Latency: 0
Size in bytes: 0
Sent bytes:0
Headers size in bytes: 0
Body size in bytes: 0
Sample Count: 1
Error Count: 1
Data type ("text"|"bin"|""):
Response code:
Response message:
[Execution Flow]
- Opening new connection
- Using response message pattern ""
- Using disconnect pattern ""
- Waiting for the server connection for 9000 MILLISECONDS
- Cannot connect to the remote server
解決:
需要修改jmeter.sh文件
如下圖:
1、打開本機jmeter.sh
修改為2G-4G

2、重啟jmeter,運行
3、結果:重啟后修改的內存無法生效,原因是我的Mac上JVM限制了線程數為2048,無法修改。如果是linux系統可以解決此問題;試另一種方法為:在windows上打開jmeter.bat文件找到
set heap修改它的Xms 和Xmx (最小值,最大值),重啟jmeter即可
參考文獻:
http://www.jianshu.com/p/935a78ded7c4
更多交流關注自動化分享群:537188253
