jmeter本機內存溢出如何修改?

websocket鏈接過程當中內存溢出,本機配置的內存最大和最小設置的512;linux

1、後臺返回web

2、結果樹返回:windows

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: websocket

[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 serversocket

解決:線程

須要修改jmeter.sh文件code

以下圖:server

一、打開本機jmeter.shblog

修改成2G-4G內存

二、重啓jmeter,運行

三、結果:重啓後修改的內存沒法生效,緣由是個人Mac上JVM限制了線程數爲2048,沒法修改。若是是linux系統能夠解決此問題;試另外一種方法爲:在windows上打開jmeter.bat文件找到

set heap修改它的Xms 和Xmx (最小值,最大值),重啓jmeter便可

參考文獻:

http://www.jianshu.com/p/935a78ded7c4

 

 更多交流關注自動化分享羣:537188253

相關文章
相關標籤/搜索