Posted by stephanenicoll
on December 21, 2006 at 6:15 AM PST
I am currently profiling a server-side application which generates images based on a SVG document. The image has roughly 1500 points which are displayed using a symbol stored in a GIF image.
The profiling test uses 15 clients, requesting exactly the same image on the server.
JProfiler shows that the 15 threads are blocked most of the times. Further investigations show that they need a lock somewhere in Graphics2D.drawImage.
If we return only the SVG document to the client (i.e. we bypass the image generation) all goes well.
Does anyone already experienced this? Anyone has reccomendations or tips&tricks regarding the server-side generation of images in multithread?
Tested with JDK 1.4.2, 1.5 and 1.6