java - JMeter安装: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable

标签 java performance jmeter automated-tests

我正在尝试在远程虚拟机上安装 JMeter。

我使用 debian 8.3 操作系统创建了 VM 并安装了 Java 和 JMeter,但是当我尝试运行 JMeter 时出现以下错误:

An error occurred: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.

我尝试将 DISPLAY 变量也设置为 :1:0.0

我还尝试使用 Centos 7.2 操作系统创建新的 VM 实例,但遇到了相同的错误。

有什么想法吗?

最佳答案

如果您对 headless 运行感到满意,请按照 user guide 操作:

For non-interactive testing, you may choose to run JMeter without the GUI. To do so, use the following command options:

-n This specifies JMeter is to run in non-gui mode

否则,您可以使用 X11 转发在 GUI 模式下运行 JMeter。

关于java - JMeter安装: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36528420/

相关文章:

java - 如何将 JFileChooser 限制为目录?

java - Java Jersey 中的地理位置

Javascript 没有在 <script> 中触发,但在 PhoneGap 函数 onBodyLoad() 中工作,这是为什么?

amazon-ec2 - PhantomJS CPU(核心)是否受限?

testing - 如何在 Jmeter 中获取字符串长度和 subtring 用户定义的变量

java - 如何将 Jmeter 响应数据转换为字节?如何将字节值存储到CSV文件中?

java - 将列表转换为 Double[][]

Java 简化函数

MySQL Distinct 性能不佳

c++ - CUDA 设备到主机的复制非常慢