You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Mladen Turk <mt...@mappingsoft.com> on 2002/06/21 13:24:22 UTC

[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.