Great to see the bottom of the MT issue has been revealed/understood. I
believe Gael may be able to fix his app now. Hope it can be an easy fix...

Not sure if the app really cares which thread should do the parameterMap
initialization. If it does not, then it would be a good idea for Tomcat to
refine/enhance the parameterMap initialization procedure to be MT safe.

Apparently, the current lock facility (isLocked() and setLocked()) does not
protect MT case properly, while initializing.

Is it worthwhile and appropriate to have certain MT synchronization facility
like isInitialized() and setInitialized() around the code? In theory, the
second thread can wait for isInitialized() there. Not sure if it will cause
any concern to other apps, like having other racing condition. Really depend
on the parameterMap usage/operation. MT issue fix can never be simple.

Chuck understands parameterMap usage very well. Maybe he can make further
comments/recommendation to the Tomcat dev team.

Dong

-----Original Message-----
From: Marziou, Gael [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 13 December 2006 3:24 AM
To: Tomcat Users List
Subject: RE: Multi processor issue


> Anything dealing with a session must be careful not to expose a
> Request object to the session scope, since there's the risk another
> request for the same session may get confused with the first - I
> suspect that's what's happening here. 

Will do.

> You should take a careful look at all the com.hp code in the stack
> trace (not just the above three places) and verify that Request
> objects are not getting mixed up.  Might want to add some trace code
> in various places to insure that a given thread is procesing the same
> Request object at all points. 

Yes, it makes sense.

> Could also try turning off APR (remove or rename tcnative-1.dll) and
> see if that has an effect. 

I already did at the beginning of our investigation as I suspected the
JNI code but it had no effect.

Gael

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to