AFAIK, the methods are not synchronised - if you want synchronisation, you must 
provide it yourself (for example hitting the one file with many servlets)



>>> [EMAIL PROTECTED] 03/31/01 03:52am >>>
Hi everyone,

I have written a servlet that dynamically generates an image using Orion.
Everything works fine under light load. However, under heavy load, when
multiple users are using it simultaneously, it fails, presenting erroneous
data.

Does every request instantiate a new servlet class or is the same one
shared? Is the doGet method synchronized? Is this behaviour specific to
Orion?

In a related question, sometimes, under heavy load i get the following
exception:

    java.io.IOException: reading encoded JPEG stream
    at sun.awt.image.codec.JPEGImageEncoderImpl.writeJPEGStream(Native
Method)

Has anyone seen this problem before?

Thanks a lot for your help.

Huibert




Reply via email to