users@glassfish.java.net

Re: Loadbalancer problems with Apache

From: <glassfish_at_javadesktop.org>
Date: Tue, 09 Oct 2007 01:49:10 PDT

Hi Varun - StartServers & MaxClients are already set to 1 and I'm running Apache in the default prefork mode (double checked with 'httpd -l'. I tried to make sure I installed everything to the letter of the instructions ... The netstat results I'm seeing are with just one listener defined. My loadbalancer.xml was slightly modified from the one generated from within Glassfish - I've tried varying each of the variables one at a time, no luck. I also tried port 8080 as opposed to 38080 (default for cluster). Each tim I tried different LB versions I made sure all the libs, dtds, res files were updated too. I've double check /usr/lib/mps is set in LD_LIBRARY_PATH and that the libs in there make sense.

I'm slightly suspicious of some odd compatibility between Solaris / Windows socket settings - but have tried using a Linux (Fedora) or a Solaris backend, no luck.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE loadbalancer PUBLIC "-//Sun Microsystems Inc.//DTD Sun Java System Application Server 9.1//EN" "sun-loadbalancer_1_2.dtd">
<loadbalancer>
  <cluster name="testcluster" policy="round-robin">
    <instance disable-timeout-in-minutes="30" enabled="true" listeners="http://10.0.1.140:38080" name="ns40" weigh
t="100"/>
    <web-module context-root="/clusterjsp" disable-timeout-in-minutes="30" enabled="true"/>
      <health-checker interval-in-seconds="30" timeout-in-seconds="10" url="/index.html"/>
  </cluster>
  <property name="response-timeout-in-seconds" value="60"/>
  <property name="reload-poll-interval-in-seconds" value="0"/>
  <property name="https-routing" value="false"/>
  <property name="require-monitor-data" value="false"/>
  <property name="active-healthcheck-enabled" value="false"/>
  <property name="number-healthcheck-retries" value="3"/>
  <property name="rewrite-location" value="true"/>
</loadbalancer>
<!--
 This file was generated on: [Fri Oct 05 15:54:01 BST 2007].
Debugging Tips:
By default, instances and web-modules are not enabled. Please enable them manually if you have not done that using
 asadmin.
-->
[Message sent by forum member 'ocoro02' (ocoro02)]

http://forums.java.net/jive/thread.jspa?messageID=239072