Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/379.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 无法在Centos7上运行jmeter 4.0脚本_Java_Linux_Jmeter Plugins_Jmeter 3.2 - Fatal编程技术网

Java 无法在Centos7上运行jmeter 4.0脚本

Java 无法在Centos7上运行jmeter 4.0脚本,java,linux,jmeter-plugins,jmeter-3.2,Java,Linux,Jmeter Plugins,Jmeter 3.2,我正在centos 7系统上通过命令行运行jmeter 4.0,但出现以下错误,请提供帮助 JMeter命令:- ./jmeter -n -t file_load.jmx -l loadResult.csv 错误: Unrecognized VM option 'MaxMetaspaceSize=256m' Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Progr

我正在centos 7系统上通过命令行运行jmeter 4.0,但出现以下错误,请提供帮助

JMeter命令:-

./jmeter -n -t file_load.jmx -l loadResult.csv
错误:

Unrecognized VM option 'MaxMetaspaceSize=256m'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
java版本

Picked up _JAVA_OPTIONS: -Xmx512M
openjdk version "1.8.0_161"
OpenJDK Runtime Environment (build 1.8.0_161-b14)
OpenJDK 64-Bit Server VM (build 25.161-b14, mixed mode)
确保您确实使用Java8运行JMeter,通过命令仔细检查您正在使用的Java

例如,我无法用Java 8重现您的问题,但用Java 7它失败了:


根据文章,您需要至少使用Java 8来运行JMeter 4.0

它是用最新的JMeter 4.0复制的吗?是的,我用的是4.0:-谢谢,我的问题用较旧的JMeter版本解决了,现在我用的是JMeter 3.3