运行jmeter.bat一闪而过,errorlever=1,可以看到生成的错误日志如下,内存不足,需要修改堆内存设置
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 65536 bytes for Failed to commit area from 0x000001ac7cd70000 to 0x000001ac7cd80000 of length 65536.
# Possible reasons:
# The system is out of physical RAM or swap space
# The process is running with CompressedOops enabled, and the Java Heap may be blocking the growth of the native heap
# Possible solutions:
# Reduce memory load on the system
# Increase physical memory or swap space
# Check if swap backing store is full
# Decrease Java heap size (-Xmx/-Xms)
# Decrease number of Java threads
# Decrease Java thread stack sizes (-Xss)
# Set larger code cache with -XX:ReservedCodeCacheSize=
# This output file may be truncated or incomplete.
#
# Out of Memory Error (os_windows.cpp:3377), pid=49088, tid=0x0000000000006f3c
#
# JRE version: (8.0_281-b09) (build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.281-b09 mixed mode windows-amd64 compressed oops)
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
解决办法:打开jmeter.bat文件,找到ctrl+F快捷键找到set HEAP所在行,将该行替换为
set HEAP=-Xms1024m -Xmx2048m
set NEW=-XX:NewSize=256m -XX:MaxNewSize=1024m
重新启动jmeter