tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "GOMEZ Henri" <hgo...@slib.fr>
Subject RE: [PATCH] mod_jk 1.2.0 workers pool
Date Fri, 21 Jun 2002 11:33:40 GMT
I started take a look at patches, 
but I didn't like the Sleep(10).

Why did you put a Sleep only in Windows case ?

-
Henri Gomez                 ___[_]____
EMAIL : hgomez@slib.fr        (. .)                     
PGP KEY : 697ECEDD    ...oOOo..(_)..oOOo...
PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 



>-----Original Message-----
>From: Mladen Turk [mailto:mturk@mappingsoft.com]
>Sent: Friday, June 21, 2002 1:24 PM
>To: tomcat-dev@jakarta.apache.org
>Subject: [PATCH] mod_jk 1.2.0 workers pool
>
>
>
>Think this solves a lot of problems (at least to my tests).
>Don't forget to add the worker.ajp13.poolsize=nn in the
>workers.properties (this is the actual number of workers  (connections)
>to the TC), the default is 1.
>
>This value should be close to the number of predicted client
>connections, or to the desired no of TC threads. (didn't done some
>serious profiling).
>
>How it works:
>
>At startup we create the nn workers, and the actual clients gets
>serialized through those workers (nothing fancy, just a safe
>multithreading I hope).
>
>Need in the jk_worker.c solution for:
>
>+#ifdef WIN32
>+            Sleep(10);
>+#else
>+    
>+#endif
>
>This is the loop that waits for a worker to finish serving request if
>non free has been found.
>
>That's it.
>
>MT.
>

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message