apache / apache/jmeter

No X11 DISPLAY variable was set

Open
#5,751 3 comments 0 reactions 0 assignees View on GitHub
defect to-triage
Dominant language
Java
Stars
9.5k
Forks
2.3k
Avg merge
1d 22h
Merged PRs (30d)
5

Description

### Expected behavior

I downloaded the latest binary and tried to run Jmeter. However I got the error as described in actual behaviour.

Expected behaviour was - Jmeter GUI should open.

### Actual behavior

ankur@ankur:~/software/apache-jmeter-5 (1).5/bin$ ./jmeter
================================================================================
Don't use GUI mode for load testing !, only for Test creation and Test debugging.
For load testing, use CLI Mode (was NON 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:
**No X11 DISPLAY variable was set,
or no headful library support was found,
but this program performed an operation which requires it,**

### Steps to reproduce the problem

system information

![image](https://user-images.githubusercontent.com/69628422/209275279-d33894d1-03ec-46cd-ac46-a591551b8060.png)

My display variable is also set -
ankur@ankur:~/software/apache-jmeter-5 (1).5/bin$ echo $DISPLAY
:1

I am using dual display, is that the issue?

### JMeter Version

5.5

### Java Version

openjdk version "19.0.1" 2022-10-18 OpenJDK Runtime Environment (build 19.0.1+10-Ubuntu-1ubuntu122.04) OpenJDK 64-Bit Server VM (build 19.0.1+10-Ubuntu-1ubuntu122.04, mixed mode, sharing)

### OS Version

Ubuntu 22.04.1 LTS

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the failure with the downloaded JMeter 5.5 binary from the bin/jmeter entry point on Ubuntu 22.04. Check the reported DISPLAY value, Java 19 runtime, and headful/X11 support; the issue is done when the JMeter GUI opens successfully in the stated environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.