“没有X11 DISPLAY变量”-这是什么意思?

时间:2019-05-07 09:10:17

标签: apache-spark hadoop jmeter mesos jmeter-plugins

我在Mesos节点之一上安装了Jmeter,但无法运行,但出现此错误

================================================== ==============================
Do not use GUI mode for load testing, only for Test creation and Test debugging.
For load testing, use CLI Mode (was NOT GUI):
   jmeter -n -t [jmx file] -l [results file] -e -o [Path to web report folder]
& increase Java Heap to meet your test requirements:
   Modify current env variable HEAP = "- Xms1g -Xmx1g -XX: MaxMetaspaceSize = 256m" in the jmeter batch file
Check: https://jmeter.apache.org/usermanual/best-practices.html
================================================== ==============================
An error occurred: Can not connect to the window server using ': 0' as the value of the DISPLAY variable.

1 个答案:

答案 0 :(得分:0)

只有在GUI模式下运行时,才需要DISPLAY。由于您是在Mesos中运行此程序,因此不能使用GUI模式。添加-n选项以在CLI模式下运行。

JMeter: Getting Started: CLI Mode