Unanswered question

Linux LoadGeneratorAgentService will not start without X11 server?

Neoload Load Generator only was installed using neoload_5_0_2_linux_x64.sh.
As root if I try to run the service it will not start because it is looking for X11 server, see error below.
I started X11 using Xming with PuTTY and then the service started OK.
One doesn't really want X11 to be required when stating a service of course.
How do I get around this please?
Thank you.

$ cat /root/.neotys/neoload/v5.0/logsagent-err.log
java.lang.InternalError: Can't connect to X11 window server using 'localhost:10.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:65)
at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:110)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:74)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:190)
at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:102)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:81)
at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:120)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:190)
at java.awt.Toolkit$2.run(Toolkit.java:868)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:860)
at java.awt.SystemTray.isSupported(SystemTray.java:219)
at com.neotys.nl.agent.j.b(j.java:87)
at com.neotys.nl.agent.j.a(j.java:60)
at com.neotys.nl.agent.j.<init>(j.java:49)
at com.neotys.nl.agent.Agent.getSystrayManager(Agent.java:470)
at com.neotys.nl.agent.Agent.start(Agent.java:148)
at com.neotys.nl.agent.AgentStarter.start(AgentStarter.java:61)
at com.neotys.nl.agent.launcher.AgentLauncher.main(AgentLauncher.java:62)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.install4j.runtime.launcher.Launcher.main(Unknown Source)

Kevin G.
Kevin G.

Kevin G.

Level
0
1 / 100
point

Answers

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

This error can happen if your console from which you connected to your machine has a DISPLAY variable set. To solve that issue you should unset that DISPLAY variable before starting the load generator agent.

You can use that command: unset DISPLAY and then check with the "echo $DISPLAY" command that it is unset.