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

Hi all,
    I am trying to perform load balancing with apache1.3.12 + jserv1.1.1 on
Red Hat linux 6.2 and am having some problems.

1. Installed apache1.3.12 with jserv from source code by compiling them in :
   /usr/local/apache
   /usr/local/jserv

   httpd.conf
   ----------
   Include "/usr/local/jserv/etc/jserv.conf"

   jserv.conf   ( jserv1)
   -----------
      ApJServManual On
      ApJServMount /servlets balance://set1/root
      ApJServMount /servlet balance://set1/root

      ApJServBalance set1 d1
      ApJServBalance set1 d2

      ApJServHost d1 ajpv12://localhost:8023
      ApJServHost d2 ajpv12://localhost:8024

      ApJServRoute JS1 d1
      ApJServRoute JS2 d2

      ApJServShmFile logs/jserv_shm

    jserv.properties (jserv1)
    ----------------
    bindaddress=localhost
    port=8023

2. Installed another jserv from source code again by compiling in:
   /usr/local/jserv2/jserv

  jserv.conf            (jserv2)
  -----------
   ApJServManual On

  jserv.properties      (jserv2)
  ----------------
    bindaddress=localhost
    port=8024

3.  Now, I start the jserv1 & jserv2 both manually
    Got this from one mailing list...
    jservmanualstart.sh
    --------------------

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

4. After starting both jserv(s) manually, I start apache
   > apachectl start

Then, in my browser:
   http://localhost:80/servlet/Hello

   It always access the jserv2 and never jserv1.

Is there anything I am missing in my conf files??
And one more question, how do I test my load balancing??
I suppose it to execute servlets in a round robin fashion on both jservs. Is
it correct??

thanks in advance.

Susmitha.
---------------------------
Susmitha Vuyyuru
Developer
<mailto:[EMAIL PROTECTED]>

Portal Wave, Inc.
The Fastest Track to Integrated e-Business
www.portalwave.com




--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search Archives: 
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to