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

I tried things again with further inspection running the four JServs and
discovered that it is in fact distributing correctly among the two instances
that are up (Dev2 and Edgar2) but Dev1 and Edgar1 never appear up in shared
memory (according to the ApacheJServ status output).  The responses to your
questions are below:

1) I start them each with it's own script (in manual mode, of course) like
this:

#!/bin/sh
properties=/export/home/jservload/etc/jserv.Edgar1.properties
log=/tmp/jserv.log
CLASSPATH=/export/home/jservload/libexec/ApacheJServ.jar
CLASSPATH=$CLASSPATH:/export/home/JSDK2.0/lib/jsdk.jar
export CLASSPATH
java org.apache.jserv.JServ $properties $1 2>> $log

The only difference with the Edgar2 script is it calls the Edgar2 properties
file set to listen to a different port.  Everything is set up likewise with
the Dev1 and Dev2 scripts but on the other machine.

2) With ps...
On the "Dev" machine, these processes seem to check out:

    root 21947 21942  0 14:08:17 pts/8    0:00 /bin/sh ./jserv.Dev1
    root 21948 21947  0 14:08:17 pts/8    0:01
/usr/jdk1.2/bin/../bin/sparc/green_threads/java org.apache.jserv.JServ
/export/
    root 21977 21258  0 14:10:27 pts/7    0:00 /bin/sh ./jserv.Dev2
    root 21978 21977  0 14:10:27 pts/7    0:01
/usr/jdk1.2/bin/../bin/sparc/green_threads/java org.apache.jserv.JServ
/export/

On the "Edgar" machine I see:

    root 10052 10011  0 14:10:39 pts/2    0:00 /bin/sh ./jserv.Edgar1
    root 10053 10052  0 14:10:39 pts/2    0:01
/usr/jdk1.2/bin/../bin/sparc/green_threads/java org.apache.jserv.JServ
/export/
    root 10062  9853  0 14:10:48 pts/1    0:00 /bin/sh ./jserv.Edgar2
    root 10063 10062  0 14:10:48 pts/1    0:01
/usr/jdk1.2/bin/../bin/sparc/green_threads/java org.apache.jserv.JServ
/export/

Also, I've tried telnetting to each of these addresses/ports to make sure
they're handling requests, and they all respond.

3) security.allowedAddresses is not set in any of the properties files
(using default).  Should Edgar1 and 2's fields be set to allow Dev's ip
address (192.168.1.156)?  If so, how is Edgar2 working now?

Thanks much for your help!
Kevin

-----Original Message-----
From: Jean-Luc Rochat <[EMAIL PROTECTED]>
To: Java Apache Users <[EMAIL PROTECTED]>
Date: Wednesday, April 19, 2000 2:01 PM
Subject: Re: problem setting up load balancing


>----------------------------------------------------------------
>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!!!
>----------------------------------------------------------------
>
>Kevin Macclay wrote:
>>
>> I've been attempting to try load balancing on our development servers so
>> that we can eventually use it for our live site.  I've been running into
a
>> problem however, than I can't seem to figure out!  This is our ultimate
>> plan:
>>
>> [ One machine running Apache Web Server and one Jserv. ]
>> [ Another machine running a second JServ. ]
>>
>> With load balancing, I hope to distribute the load hitting the first
machine
>> to both machines through the two JServ instances.
>>
>> I created this scenario on our development servers with no success in
>> loading any servlets.  I fooled around with several similar scenarios to
try
>> to figure out what was going wrong.  I think this most recent attempt
will
>> be the most descriptive of the problem:
>>
>How do you start these 4 JServs ?
>What does "ps" say ?
>what are your security.allowedAddresses settings ?
>
>jluc
>
>
>--
>--------------------------------------------------------------
>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