-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------

This sounds like exactly what our load-balancing system is made for. Here 
at Talk City, we run just one Servlet which is the dispatcher for lots of 
java code for part of our system. That code is balance across 16 instances 
of java on four machines (4 instances per machine). Each initial request is 
distributed among the 16 machines and the sessions return to the issuing 
instance.

The FAQ has documentation on how to set that up with the existing JServ 
system. I've also written a watchdog which we use to launch our JVM's and 
watch them to keep them running in case one freezes or dies. That is 
checked into jserv_whiteboard and I've recently gotten contributions from 
an NT programmer to make it work there.

Let me know if I can help.


Bernie



At 09:35 PM 8/30/99 +0200, you wrote:
>-----------------------------
>Please read the FAQ!
><http://java.apache.org/faq/>
>-----------------------------
>
>
>Hello ,
>
>I am having a unique servlet generating all my web site. This servlet gets
>its information from my database to know what to do with a request.
>
>Because JVM can not handle a lot of threads on this servlet I need a way to
>load balance the request between multiple instance of this servlets. I still
>want it to be multithreaded so I thought of having an instance of it in
>every zone and load balance between this zones.
>Do you think that will work for me?
>
>Another solution would be to have another servlet handling all the requests
>from the web server and forward them to different servlets. But the problem
>then is that Apache do not do servlet chaining so this first servlet will
>suffer from the same issue of having to many threads open at the same time.
>Is it possible to forward a request from one servlet to another having the
>first servlet thread dying even before the second respond to the web server
>directly?
>If this was possible then I could use the first one to manage a pool of
>instance of the other servlet by counting the number of threads from all
>these instances.
>
>Please respond to me directly if possible.
>
>Kind regards.
>
>Frederic
>Mobile: +31 (0) 655102855
>Phone: +31 (0) 207788211
>
>
>
>
>--
>--------------------------------------------------------------
>Please read the FAQ! <http://java.apache.org/faq/>
>To subscribe:        [EMAIL PROTECTED]
>To unsubscribe:      [EMAIL PROTECTED]
>Archives and Other:  <http://java.apache.org/main/mail.html>
>Problems?:           [EMAIL PROTECTED]



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to