-
报错
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 0x0000000015210000 to 0x0000000015220000 of length 65536.
…
This file may be truncated or incomplete.
Out of Memory Error (os_windows.cpp:3332), pid=11096, tid=0x0000000000000934
JRE version: (8.0_92-b14) (build )
Java VM: Java HotSpot™ 64-Bit Server VM (25.92-b14 mixed mode windows-amd64 compressed oops)
Failed to write core dump. Minidumps are not enabled by default on client versions of Windows -
分析
1.最开始百度到的解决办法是修改jmeter.bat中配置的堆内存等大小,修改后重启依然报错。
2.后来发现,Jmeter非常的友好,将关于报错的更多详细内容都记录到了bin目录下一个叫hs_err_pid***.log的日志中,里边记录了SYSTEM,THREAD,PROCESS等非常详细的信息,其实详细的东西我也不能完全看懂,但是看到了环境变量的时候,我发现CLASSPATH的值有点不对劲,我的是“CLASSPATH=,;D:\jdk1.8.0_92_64bit\lib;D:\jdk1.8.0_92_64bit\lib\tools.jar”,就这等于号后边的“,;”是什么鬼?
3.果断修改环境变量中的CLASSPATH,去掉扎眼的“,;”,之后重启Jmeter -
结果
酱酱~搞定!
Jmeter报错‘There is insufficient memory for the Java Runtime Environment to continue.’
最新推荐文章于 2025-02-15 20:37:30 发布