users@glassfish.java.net

Re: Help with Load Balancer

From: Kshitiz Saxena <Kshitiz.Saxena_at_Sun.COM>
Date: Mon, 31 Mar 2008 21:05:21 +0530

Hi,

Can you provide following files?
1. load-balancer.xml
2. Changes you made to obj.conf
3. Changes you made to magnus.conf

I assume webserver was running without error when lbplugin was not
installed.

Thanks,
Kshitiz

glassfish_at_javadesktop.org wrote:
> Hi
>
> I have a two instances glassfish cluster: instance1 and instance2. I want to install a load balancer in different computer: machine1.
>
> I'm working with Debian linux.
>
> I have downloaded the Sun Java System Web Server and installed it into machine1. I have downloaded and configured the load-balancer plugi, following the steps in https://glassfish.dev.java.net/javaee5/build/GlassFish_LB_Cluster.html#config_lb. But when I try to start up the web server, I get the following meesages in the log file (the errors are in the end):
>
> [31/Mar/2008:16:30:58] info ( 9372): CORE1116: Sun Java System Web Server 7.0 B12/04/2006 08:17
> [31/Mar/2008:16:30:58] fine ( 9372): HTTP3064: HTTP keep-alive timeout is 30 seconds
> [31/Mar/2008:16:30:58] fine ( 9372): 1352 connection maximum (1024 queued, 128 active, 200 keep-alive)
> [31/Mar/2008:16:30:58] fine ( 9372): Emulating writev for filter http-compression
> [31/Mar/2008:16:30:58] fine ( 9372): Emulating sendfile for filter http-compression
> [31/Mar/2008:16:30:58] fine ( 9372): Emulating writev for filter sed-response
> [31/Mar/2008:16:30:58] fine ( 9372): Emulating sendfile for filter sed-response
> [31/Mar/2008:16:30:58] fine ( 9372): attempting to load /opt/sunJavaSystemWebServer/plugins/lbplugin/bin/libpassthrough.so
> [31/Mar/2008:16:30:58] fine ( 9372): debug reports: Entering into method : init_lbplugin
> [31/Mar/2008:16:30:58] fine ( 9372): attempting to load /opt/sunJavaSystemWebServer/lib/libj2eeplugin.so
> [31/Mar/2008:16:30:58] fine ( 9372): Collecting statistics for up to 1 processes with 128 threads, 200 listen sockets
> [31/Mar/2008:16:30:58] fine ( 9372): CORE3047: Server spawned worker process 9373
> [31/Mar/2008:16:30:58] fine ( 9373): update-crl: reading CRL files from [crl]
> [31/Mar/2008:16:30:58] fine ( 9373): CORE3351: update-crl: Unable to read dir [crl]
> [31/Mar/2008:16:30:58] fine ( 9373): HTTP5169: User authentication cache entries expire in 0 seconds
> [31/Mar/2008:16:30:58] fine ( 9373): HTTP5170: User authentication cache holds 200 users
> [31/Mar/2008:16:30:58] fine ( 9373): HTTP5171: Up to 4 groups are cached for each cached user.
> [31/Mar/2008:16:30:58] fine ( 9373): registered database keyfile:1
> [31/Mar/2008:16:30:58] fine ( 9373): Installed configuration 1
> [31/Mar/2008:16:30:58] fine ( 9373): HTTP4207: file cache module initialized (API versions 2 through 2)
> [31/Mar/2008:16:30:58] fine ( 9373): HTTP4302: file cache has been initialized
> [31/Mar/2008:16:30:58] fine ( 9373): HTTP3066: HTTP keep-alive subsystem will accomodate up to 200 connections
> [31/Mar/2008:16:30:58] fine ( 9373): debug reports: Entering into method : init_lbplugin
> [31/Mar/2008:16:30:58] info ( 9373): reports: Initializing lbplugin BuildId: A701212-164111
> [31/Mar/2008:16:30:58] fine ( 9373): debug reports: Exiting out of method : init_lbplugin
> [31/Mar/2008:16:30:58] fine ( 9373): jvm stickyAttach: 1
> [31/Mar/2008:16:30:58] fine ( 9373): jvm option: -DJAVA_HOME=/opt/jdk
> [31/Mar/2008:16:30:58] fine ( 9373): jvm option: -Djava.util.logging.manager=com.sun.webserver.logging.ServerLogManager
> [31/Mar/2008:16:30:58] fine ( 9373): jvm option: -Dproduct.name=Sun Java System Web Server/7.0
> [31/Mar/2008:16:30:58] fine ( 9373): jvm option: -Dcom.sun.web.installRoot=/opt/sunJavaSystemWebServer
> [31/Mar/2008:16:30:58] fine ( 9373): jvm option: -Dcom.sun.web.instanceRoot=/opt/sunJavaSystemWebServer
> [31/Mar/2008:16:30:58] fine ( 9373): jvm option: -Duser.language=en
> [31/Mar/2008:16:30:58] fine ( 9373): jvm option: exit
> [31/Mar/2008:16:30:58] fine ( 9373): jvm option: vfprintf
> [31/Mar/2008:16:30:58] fine ( 9373): jvm option: -Djava.security.auth.login.config=login.conf
> [31/Mar/2008:16:30:58] fine ( 9373): jvm option: -Xms128m
> [31/Mar/2008:16:30:58] fine ( 9373): jvm option: -Xmx256m
> [31/Mar/2008:16:30:58] fine ( 9373): jvm option: -Djava.class.path=/opt/sunJavaSystemWebServer/lib/webserv-rt.jar:/opt/sunJavaSystemWebServer/lib/pwc.jar:/opt/sunJavaSystemWebServer/lib/ant.jar:/opt/jdk/lib/tools.jar:/opt/sunJavaSystemWebServer/lib/ktsearch.jar:/opt/sunJavaSystemWebServer/lib/webserv-jstl.jar:/opt/sunJavaSystemWebServer/lib/jsf-impl.jar:/opt/sunJavaSystemWebServer/lib/jsf-api.jar:/opt/sunJavaSystemWebServer/lib/webserv-jwsdp.jar:/opt/sunJavaSystemWebServer/lib/container-auth.jar:/opt/sunJavaSystemWebServer/lib/mail.jar:/opt/sunJavaSystemWebServer/lib/activation.jar:
> [31/Mar/2008:16:30:58] config ( 9373): HTTP4292: flex-init: Log file ../logs/access should be removed before changing its format
> [31/Mar/2008:16:30:58] fine ( 9373): debug reports: Entering into method : vsinit
> [31/Mar/2008:16:30:58] fine ( 9373): debug reports: Exiting out of method : vsinit
> [31/Mar/2008:16:30:58] fine ( 9373): reinitializeLogger: null FINEST
> [31/Mar/2008:16:30:58] fine ( 9373): reinitializeLogger: global null null
> [31/Mar/2008:16:30:58] fine ( 9373): reinitializeLogger: org.apache.coyote.tomcat5.CoyoteConnector null FINEST
> [31/Mar/2008:16:30:58] fine ( 9373): reinitializeLogger: javax.enterprise.system.container.web com.sun.webserver.logging.enterprise.system.container.web.LogStrings FINEST
> [31/Mar/2008:16:30:58] finer ( 9373): initializeServerLogger: javax.enterprise.system.core com.sun.webserver.logging.enterprise.system.core.LogStrings null
> [31/Mar/2008:16:30:58] finer ( 9373): Logger init: Name=[javax.enterprise.system.core], Level=[null], Parent=[], UseParentHandlers=[true], Handlers=[], ResourceBundle=[com.sun.webserver.logging.enterprise.system.core.LogStrings]
> [31/Mar/2008:16:30:58] info ( 9373): CORE5076: Using [Java HotSpot(TM) Server VM, Version 1.6.0_04] from [Sun Microsystems Inc.]
> [31/Mar/2008:16:30:58] finer ( 9373): initializeServerLogger: javax.enterprise.system.core.classloading com.sun.webserver.logging.enterprise.system.core.classloading.LogStrings null
> [31/Mar/2008:16:30:58] finer ( 9373): Logger init: Name=[javax.enterprise.system.core.classloading], Level=[null], Parent=[javax.enterprise.system.core], UseParentHandlers=[true], Handlers=[], ResourceBundle=[com.sun.webserver.logging.enterprise.system.core.classloading.LogStrings]
> [31/Mar/2008:16:30:58] finer ( 9373): initializeServerLogger: javax.enterprise.system.core.lifecycle com.sun.webserver.logging.enterprise.system.core.lifecycle.LogStrings null
> [31/Mar/2008:16:30:58] finer ( 9373): Logger init: Name=[javax.enterprise.system.core.lifecycle], Level=[null], Parent=[javax.enterprise.system.core], UseParentHandlers=[true], Handlers=[], ResourceBundle=[com.sun.webserver.logging.enterprise.system.core.lifecycle.LogStrings]
> [31/Mar/2008:16:30:58] finer ( 9373): initializeServerLogger: javax.management null INFO
> [31/Mar/2008:16:30:58] finer ( 9373): Logger init: Name=[javax.management], Level=[INFO], Parent=[], UseParentHandlers=[true], Handlers=[], ResourceBundle=[null]
> [31/Mar/2008:16:30:58] finer ( 9373): initializeServerLogger: javax.management.mbeanserver null INFO
> [31/Mar/2008:16:30:58] finer ( 9373): Logger init: Name=[javax.management.mbeanserver], Level=[INFO], Parent=[javax.management], UseParentHandlers=[true], Handlers=[], ResourceBundle=[null]
> [31/Mar/2008:16:30:58] finer ( 9373): initializeServerLogger: javax.management.misc null INFO
> [31/Mar/2008:16:30:58] finer ( 9373): Logger init: Name=[javax.management.misc], Level=[INFO], Parent=[javax.management], UseParentHandlers=[true], Handlers=[], ResourceBundle=[null]
> [31/Mar/2008:16:30:58] finer ( 9373): initializeServerLogger: org.apache.naming.NamingContext null FINEST
> [31/Mar/2008:16:30:58] finer ( 9373): Logger init: Name=[org.apache.naming.NamingContext], Level=[FINEST], Parent=[], UseParentHandlers=[true], Handlers=[], ResourceBundle=[null]
> [31/Mar/2008:16:30:58] fine ( 9373): WEB7101: Naming Service has been successfully initialized.
> [31/Mar/2008:16:30:58] finer ( 9373): initializeServerLogger: javax.enterprise.resource com.sun.webserver.logging.enterprise.resource.LogStrings null
> [31/Mar/2008:16:30:58] finer ( 9373): Logger init: Name=[javax.enterprise.resource], Level=[null], Parent=[], UseParentHandlers=[true], Handlers=[], ResourceBundle=[com.sun.webserver.logging.enterprise.resource.LogStrings]
> [31/Mar/2008:16:30:58] fine ( 9373): WEB7010: Resource Manager has been successfully initialized.
> [31/Mar/2008:16:30:58] finer ( 9373): initializeServerLogger: javax.enterprise.system.container.web.replication com.sun.webserver.logging.enterprise.system.container.web.replication.LogStrings null
> [31/Mar/2008:16:30:58] finer ( 9373): Logger init: Name=[javax.enterprise.system.container.web.replication], Level=[null], Parent=[javax.enterprise.system.container.web], UseParentHandlers=[true], Handlers=[], ResourceBundle=[com.sun.webserver.logging.enterprise.system.container.web.replication.LogStrings]
> [31/Mar/2008:16:30:58] finer ( 9373): REPL0006: Cluster Level Replication disabled
> [31/Mar/2008:16:30:58] finer ( 9373): initializeServerLogger: org.apache.catalina.security.SecurityUtil null FINEST
> [31/Mar/2008:16:30:58] finer ( 9373): Logger init: Name=[org.apache.catalina.security.SecurityUtil], Level=[FINEST], Parent=[], UseParentHandlers=[true], Handlers=[], ResourceBundle=[null]
> [31/Mar/2008:16:30:58] finer ( 9373): initializeServerLogger: org.apache.catalina.util.StringManager null FINEST
> [31/Mar/2008:16:30:58] finer ( 9373): Logger init: Name=[org.apache.catalina.util.StringManager], Level=[FINEST], Parent=[], UseParentHandlers=[true], Handlers=[], ResourceBundle=[null]
> [31/Mar/2008:16:30:58] finer ( 9373): initializeServerLogger: org.apache.catalina.startup.TldConfig null FINEST
> [31/Mar/2008:16:30:58] finer ( 9373): Logger init: Name=[org.apache.catalina.startup.TldConfig], Level=[FINEST], Parent=[], UseParentHandlers=[true], Handlers=[], ResourceBundle=[null]
> [31/Mar/2008:16:30:58] finer ( 9373): initializeServerLogger: org.apache.jasper.compiler.TldLocationsCache null FINEST
> [31/Mar/2008:16:30:58] finer ( 9373): Logger init: Name=[org.apache.jasper.compiler.TldLocationsCache], Level=[FINEST], Parent=[], UseParentHandlers=[true], Handlers=[], ResourceBundle=[null]
> [31/Mar/2008:16:30:58] fine ( 9373): Server configuration file: /opt/sunJavaSystemWebServer/https-perena/config/server.xml
> [31/Mar/2008:16:30:58] fine ( 9373): Server default locale is en_ES
> [31/Mar/2008:16:30:58] fine ( 9373): Web container log level: FINEST
> [31/Mar/2008:16:30:58] fine ( 9373): Maximum depth for nested request dispatches is set to 20
> [31/Mar/2008:16:30:58] fine ( 9373): Encode cookie is set to true
> [31/Mar/2008:16:30:58] fine ( 9373): secure-session-cookie=dynamic
> [31/Mar/2008:16:30:58] fine ( 9373): Servlet container single threaded servlet pool size is set to 5
> [31/Mar/2008:16:30:58] fine ( 9373): Servlet container cross context allowed is true
> [31/Mar/2008:16:30:58] fine ( 9373): Servlet container reuse session id is false
> [31/Mar/2008:16:30:58] finer ( 9373): initializeServerLogger: org.apache.catalina.core.StandardService null FINEST
> [31/Mar/2008:16:30:58] finer ( 9373): Logger init: Name=[org.apache.catalina.core.StandardService], Level=[FINEST], Parent=[], UseParentHandlers=[true], Handlers=[], ResourceBundle=[null]
> [31/Mar/2008:16:30:58] finer ( 9373): initializeServerLogger: org.apache.catalina.startup.Embedded null FINEST
> [31/Mar/2008:16:30:58] finer ( 9373): Logger init: Name=[org.apache.catalina.startup.Embedded], Level=[FINEST], Parent=[], UseParentHandlers=[true], Handlers=[], ResourceBundle=[null]
> [31/Mar/2008:16:30:58] finer ( 9373): initializeServerLogger: org.apache.catalina.security.SecurityConfig null FINEST
> [31/Mar/2008:16:30:58] finer ( 9373): Logger init: Name=[org.apache.catalina.security.SecurityConfig], Level=[FINEST], Parent=[], UseParentHandlers=[true], Handlers=[], ResourceBundle=[null]
> [31/Mar/2008:16:30:58] finer ( 9373): initializeServerLogger: org.apache.catalina.startup.CatalinaProperties null FINEST
> [31/Mar/2008:16:30:58] finer ( 9373): Logger init: Name=[org.apache.catalina.startup.CatalinaProperties], Level=[FINEST], Parent=[], UseParentHandlers=[true], Handlers=[], ResourceBundle=[null]
> [31/Mar/2008:16:30:58] fine ( 9373): Creating engine
> [31/Mar/2008:16:30:58] finer ( 9373): initializeServerLogger: org.apache.catalina.core.ContainerBase null FINEST
> [31/Mar/2008:16:30:58] finer ( 9373): Logger init: Name=[org.apache.catalina.core.ContainerBase], Level=[FINEST], Parent=[], UseParentHandlers=[true], Handlers=[], ResourceBundle=[null]
> [31/Mar/2008:16:30:58] finer ( 9373): initializeServerLogger: org.apache.catalina.core.StandardEngine null FINEST
> [31/Mar/2008:16:30:58] finer ( 9373): Logger init: Name=[org.apache.catalina.core.StandardEngine], Level=[FINEST], Parent=[], UseParentHandlers=[true], Handlers=[], ResourceBundle=[null]
> [31/Mar/2008:16:30:58] finer ( 9373): initializeServerLogger: org.apache.catalina.core.StandardPipeline null FINEST
> [31/Mar/2008:16:30:58] finer ( 9373): Logger init: Name=[org.apache.catalina.core.StandardPipeline], Level=[FINEST], Parent=[], UseParentHandlers=[true], Handlers=[], ResourceBundle=[null]
> [31/Mar/2008:16:30:58] finer ( 9373): initializeServerLogger: org.apache.catalina.valves.ValveBase null FINEST
> [31/Mar/2008:16:30:58] finer ( 9373): Logger init: Name=[org.apache.catalina.valves.ValveBase], Level=[FINEST], Parent=[], UseParentHandlers=[true], Handlers=[], ResourceBundle=[null]
> [31/Mar/2008:16:30:58] fine ( 9373): Adding engine (org.apache.catalina.core.StandardEngine/1.0)
> [31/Mar/2008:16:30:58] finer ( 9373): initializeServerLogger: org.apache.commons.modeler.Registry null INFO
> [31/Mar/2008:16:30:58] finer ( 9373): Logger init: Name=[org.apache.commons.modeler.Registry], Level=[INFO], Parent=[], UseParentHandlers=[true], Handlers=[], ResourceBundle=[null]
> [31/Mar/2008:16:30:58] finer ( 9373): initializeServerLogger: javax.enterprise.system.core.security com.sun.webserver.logging.enterprise.system.core.security.LogStrings null
> [31/Mar/2008:16:30:58] finer ( 9373): Logger init: Name=[javax.enterprise.system.core.security], Level=[null], Parent=[javax.enterprise.system.core], UseParentHandlers=[true], Handlers=[], ResourceBundle=[com.sun.webserver.logging.enterprise.system.core.security.LogStrings]
> [31/Mar/2008:16:30:58] fine ( 9373): Initializing configured realms.
> [31/Mar/2008:16:30:58] finer ( 9373): initializeServerLogger: javax.enterprise.system.util com.sun.webserver.logging.enterprise.system.util.LogStrings null
> [31/Mar/2008:16:30:58] finer ( 9373): Logger init: Name=[javax.enterprise.system.util], Level=[null], Parent=[], UseParentHandlers=[true], Handlers=[], ResourceBundle=[com.sun.webserver.logging.enterprise.system.util.LogStrings]
> [31/Mar/2008:16:30:58] fine ( 9373): NativeRealm: auth-db= null (will use default)
> [31/Mar/2008:16:30:58] fine ( 9373): NativeRealm : jaas-context=nativeRealm
> [31/Mar/2008:16:30:58] fine ( 9373): Configured realm: internal-native-realm
> [31/Mar/2008:16:30:58] finest ( 9373): Realm: getInstance returning realm :internal-native-realm
> [31/Mar/2008:16:30:58] info ( 9373): SEC1112: Default realm is set to: internal-native-realm
> [31/Mar/2008:16:30:58] fine ( 9373): Configured realm: internal-cert-realm
> [31/Mar/2008:16:30:58] finest ( 9373): trying to GET /, process-uri-objects reports: processing objects for URI /
> [31/Mar/2008:16:30:58] finest ( 9373): trying to GET /, process-uri-objects reports: adding object name="default"
> [31/Mar/2008:16:30:58] finest ( 9373): trying to GET /, func_exec reports: executing fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true" Directive="AuthTrans"
> [31/Mar/2008:16:30:58] finest ( 9373): trying to GET /, func_exec reports: fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true" Directive="AuthTrans" returned -2 (REQ_NOACTION)
> [31/Mar/2008:16:30:58] finest ( 9373): trying to GET /, func_exec reports: executing fn="name-trans-passthrough" name="lbplugin" config-file="/opt/sunJavaSystemWebServer/https-perena/config/loadbalancer.xml" Directive="NameTrans"
> [31/Mar/2008:16:30:58] fine ( 9373): debug reports: Entering into method : name_trans_lbplugin
> [31/Mar/2008:16:30:58] catastrophe ( 9373): CORE3260: Server crash detected (signal SIGSEGV)
> [31/Mar/2008:16:30:59] fine ( 9372): CORE3061: received signal 17
> [31/Mar/2008:16:30:59] fine ( 9372): CORE3049: Detected child process 9373 died (status 11)
> [31/Mar/2008:16:30:59] fine ( 9372): CORE3071: Child died before completing init
>
> Can anybody help me?
>
> Also, I don't know if I must configure something in the two instances of the cluster.
>
> Thanks.
> [Message sent by forum member 'alfsancho' (alfsancho)]
>
> http://forums.java.net/jive/thread.jspa?messageID=266787
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>