Comment 6 for bug 294454

Revision history for this message
Stefan Baramov (s-baramov) wrote : Re: xvfb on server gives multiple errors

Hello
I am experiencing exactly the same problem. I have a tomcat6 (comes with Ubuntu Server) with Hudson (http://hudson.dev.java.net) running continuous build of a Eclipse based product. After every build the Xvfb process goes to 99% CPU usage. The only work around I can find is to kill Xvfb on regular bases.

To reproduce the problem follow these steps:

1. Setup a Ubuntu 8.10 sever with open JDK 6 and Tomcat6. These are standard installation options of Ubuntu Server.

2. Install gtk packages:
> dpkg -l | grep gtk
ii libgtk2.0-0 2.14.4-0ubuntu1 The GTK+ graphical user interface library
ii libgtk2.0-bin 2.14.4-0ubuntu1 The programs for the GTK+ graphical user int
ii libgtk2.0-common 2.14.4-0ubuntu1 Common files for the GTK+ graphical user int

3. Install xvfb package
> dpkg -l | grep xvfb
ii xvfb 2:1.5.2-2ubuntu3 Virtual Framebuffer 'fake' X server

4. Run the Xvfb server like this :
> Xvfb :99 -screen 0 1024x768x24 -fbdir /var/run

5. Set display
> export DISPLAY=localhost:99.0

6. Run the Notepad.jar demo from the OpenJdk demo pacakge (openjdk-6-demo package):
> java -jar /usr/lib/jvm/java-6-openjdk/demo/jfc/Notepad/Notepad.jar

7 Kill the Notepad.jar process

At this point the Xvfb goes to 99% CPU usage. It stops working normally. It does not produce Xorg.0.log log file as one will expect from a xserver. So very difficult to say what is going on.

Thanks
Stefan