[jcifs] authorization problems in a mulitthreading environment

Michael B. Allen mballen at erols.com
Wed Nov 7 07:58:00 EST 2001

On Tue, Nov 06, 2001 at 01:55:29PM +0100, Kammerloher Josef wrote:
> I run Linux/Apache/Tomcat and test web-stress situations.
> I start simultanously up to 50 threads, each of them uses
> jCifs for user authorization ( similar to the 'isAuthorized()' example).
> Up to 20 threads everything runs okay, with 30 threads or more
> the authorization fails in some threads.
> When I run 'isAuthorized()'  as a synchronized method,
> I have no problems.

I don't quite remember the example but is that a static method? If so,
I think that would result in pretty horrid performace. Can you post that
code again please? It could be that synchronization is required but I've
never really tired the sample you're talking about. Surely it could be
refined. In fact it could be made to work quite well I think.


May The Source be with you.

More information about the jcifs mailing list