Bootstrap

jmeter内存溢出问题-win11

记录一次win11下jmeter内存溢出问题:

先是OutOfMemory,

并发高我吃内存,不够用就增加

改jmeter配置(windows ----jmeter.bat)

if not defined HEAP (
    rem See the unix startup file for the rationale of the following parameters,
    rem including some tuning recommendations
    set HEAP=-Xms1g -Xmx1g -XX:MaxMetaspaceSize=256m
)

set HEAP=-Xms1g -Xmx1g -XX:MaxMetaspaceSize=256m

set HEAP=-Xms2g -Xmx2g -XX:MaxMetaspaceSize=1024m

然后:Could not reserve enough space for 2097152KB object heap!!!

大半夜的 ,脑子不清醒,我居然查了半天win11的内存管理,后来突然灵光一闪,win11都跑起来,并发也并没有多大,不会这么坑,我居然有这个怀疑,泪奔ing

果然,查看jdk,原来居然是32位的,赶紧下个64的

jdk8下载地址: 

;