Hi.

I am working on a Turbine project someone else set up. All their action methods are synchronized.

Example)
public final synchronized void doPerform( RunData data,Context context ) throws Exception {
     ...
  }

Inside our TurbineResources.properties file,  the line

  module-cache=true

can be found. I assume this means that each class instance is cached and will be reused. When this variable is set to true, only one request to a given method can process at a time due to the synchronization, when it is set to false, more than one request will process, but I assume it takes time to reload the module. Most of our actions perform database queries which may take some time. Under heavy load, this can be an issue. I want to remove synchronized from all our action methods. Will this cause problems? I have to assume that the original developers made these methods synchronized for a reason, but am unable to determine it. A web server which can process only one request to an action does not seem correct. All our session data is synchronized.

Thank You
AFrieze



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to