----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

At 04:58 AM 1/25/00 +0100, Rupert Huelsey wrote:
>we are trying to manage load balancing with the following jserv.conf:
>
>.....
>ApJServMount /1300 balance://set1/1300
>
>ApJServBalance set1  PC1
>#ApJServBalance set1  PC2
>#ApJServBalance set1  PC3
>
>ApJServHost PC1 ajpv12://ipaddress:8007
>#ApJServHost PC2 ......
>
>ApJServRoute 1 PC1
>#ApJServRoute 2 PC2
>#ApJServRoute 3 PC3
>
>ApJServShmFile logs/jserv_shm
>.......

Have you tried this running that same zone without load-balancing? It looks 
like the servlet is not running when it sends:

>[25/01/2000 03:52:38:034] (ERROR) balance: virtual host not found or not 
>running

Try:

ApJServMount /1300 ajpv12://ipaddress:8007/1300

rather than the load-balanced version just to make sure that the module is 
able to talk to the java side. If that works, then continue looking into 
the balance problems.


I believe the shared-memory files must be writable by the apache children, 
so check it's permissions.

One other thing to try is deleting the shared-memory file completely and 
see if that clears out a "bad jserv" value. That file is used by the apache 
instances to put in and take out instances of the java side from access. If 
there is only one java instance in the balance and it goes down, then you 
would get these failures for a while. I don't remember offhand how they get 
put back into the loop, but it is possible for these failured to happen 
even when the java is back up for some time interval.

I've been away from the code for too long to give details, but I haven't 
had this problem on our systems and we've been making heavy use of the 
load-balancing. I've most recently tested 100 instances in a balanced set 
with no problems in jserv 1.1. (They actually all pointed to the same 
instance of java, but I needed to make sure the apache side was doing a 
good balancing job).


Bernie


Bernie Bernstein
Talk City Inc.
[EMAIL PROTECTED]             Join the Conversation.
voice: 617-244-0571                          http://www.talkcity.com/



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