This content has been marked as final. Show 2 replies
I didn't put that very clearly did I, sorry.
I have a servlet that uses JClass Chart to create PNG images.
On its original installation it runs under Solaris 8 using Xvfb to buffer the images, it produces many PNGs per second.
Now I am trying to migrate it to a Solaris 9 box using Java 1.5 under SJSAS, it is working with or without Xvfb running but it takes approx 30 seconds per image.
Using SJSAS under windows it still runs quickly.
Although Xvfb is supposedly included in Solaris 9 in the directory /usr/openwin/bin
it was nowhere to be found, so I installed it as per Solaris 8 in /usr/X11R6/bin.
Xvfb is running as follows:
/usr/X11R6/bin/Xvfb :999 -screen 0 512x512x8 -fbdir /tmp
In SJSAS I have configured a system property DISPLAY=localhost:999.0
I dont think this is correct.
Since the servlet produces images with or without Xvfb running I have to assume it is limping by without it.
Any idea how to configure SJSAS such that the servlet starts using Xvfb ?
I got the servlet to start using Xvfb by setting DISPLAY in the shell script that starts SJSAS.
The time taken to create a chart image has dropped from a minute or so to 2 or 3 seconds. I big improvement but still very slow when compared with the old installation running under Tomcat 3. There the same servlet does approx 10 images per second on an equivalent box.