[Clustering/JBoss] - Re: Unable to run multiple cluster nodes.
by praveenas
I have deleted my log4j.jar from the "lib" of application war file. Here is the result
mod_jk.log file of apache
[root@localhost logs]# tail -f mod_jk.log
[Wed Apr 30 11:56:08 2008][3345:3086427840] [error] init_jk::mod_jk.c (2781): Initializing shm:/usr/local/apache2/run/jk.shm.3345 errno=2. Load balancing workers will not function properly.
[Wed Apr 30 11:56:08 2008][3345:3086427840] [warn] jk_map_validate_property::jk_map.c (410): The attribute 'worker.node1.cachesize' is deprecated - please check the documentation for the correct replacement.
[Wed Apr 30 11:56:08 2008][3345:3086427840] [warn] jk_map_validate_property::jk_map.c (410): The attribute 'worker.node2.cachesize' is deprecated - please check the documentation for the correct replacement.
[Wed Apr 30 11:56:08 2008][3345:3086427840] [info] init_jk::mod_jk.c (2825): mod_jk/1.2.26 initialized
[Wed Apr 30 11:59:14 2008]loadbalancer 10.20.220.135 0.961028
[Wed Apr 30 11:59:14 2008]loadbalancer 10.20.220.135 0.016325
[Wed Apr 30 11:59:19 2008]loadbalancer 10.20.220.135 4.573659
[Wed Apr 30 11:59:19 2008]loadbalancer 10.20.220.135 0.023416
[Wed Apr 30 11:59:19 2008]loadbalancer 10.20.220.135 0.023957
[Wed Apr 30 11:59:19 2008]loadbalancer 10.20.220.135 0.139374
error_log file of apache
[root@localhost logs]# tail -f error_log
[Wed Apr 30 11:53:16 2008] [notice] Apache/2.0.63 (Unix) mod_jk/1.2.26 configured -- resuming normal operations
[Wed Apr 30 11:56:07 2008] [notice] caught SIGTERM, shutting down
[Wed Apr 30 11:56:08 2008] [notice] Apache/2.0.63 (Unix) mod_jk/1.2.26 configured -- resuming normal operations
[Wed Apr 30 11:59:07 2008] [error] [client 10.20.220.15] File does not exist: /usr/local/apache2/htdocs/favicon.ico
[Wed Apr 30 11:59:14 2008] [error] [client 10.20.220.15] File does not exist: /usr/local/apache2/htdocs/favicon.ico
access_log file of apache
[root@localhost logs]# tail -f access_log
10.20.220.15 - - [30/Apr/2008:11:59:07 +0530] "GET / HTTP/1.1" 200 1456
10.20.220.15 - - [30/Apr/2008:11:59:07 +0530] "GET /apache_pb.gif HTTP/1.1" 200 2326
10.20.220.15 - - [30/Apr/2008:11:59:07 +0530] "GET /favicon.ico HTTP/1.1" 404 300
10.20.220.15 - - [30/Apr/2008:11:59:13 +0530] "GET /casper-2.1/app HTTP/1.1" 200 729
10.20.220.15 - - [30/Apr/2008:11:59:14 +0530] "GET /casper-2.1/app?serviceId=Echo.ClientEngine HTTP/1.1" 200 10767
10.20.220.15 - - [30/Apr/2008:11:59:14 +0530] "GET /favicon.ico HTTP/1.1" 404 300
10.20.220.15 - - [30/Apr/2008:11:59:14 +0530] "POST /casper-2.1/app?serviceId=Echo.Synchronize HTTP/1.1" 200 3435
10.20.220.15 - - [30/Apr/2008:11:59:19 +0530] "GET /casper-2.1/app?serviceId=Echo.ContentPane HTTP/1.1" 200 809
10.20.220.15 - - [30/Apr/2008:11:59:19 +0530] "GET /casper-2.1/app?serviceId=Echo.WebContainer HTTP/1.1" 200 609
10.20.220.15 - - [30/Apr/2008:11:59:19 +0530] "GET /casper-2.1/app?serviceId=22fe09_1199e06b43f_1 HTTP/1.1" 200 11333
server.log file of jboss server
[root@praveena log]# tail -f server.log
2008-04-30 12:15:28,674 DEBUG [org.jboss.web.tomcat.service.session.JBossCacheManager] Looking for sessions that have expired ...
2008-04-30 12:15:28,674 DEBUG [org.jboss.web.tomcat.service.session.JBossCacheManager] Looking for sessions that have expired ...
2008-04-30 12:15:33,467 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] Periodic recovery - second pass <Wed, 30 Apr 2008 12:15:33>
2008-04-30 12:15:33,467 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] AtomicActionRecoveryModule: Second pass
2008-04-30 12:15:33,467 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_6] - TORecoveryModule - second pass
2008-04-30 12:15:33,467 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.recovery.info.secondpass] Local XARecoveryModule - second pass
2008-04-30 12:15:38,675 DEBUG [org.jboss.web.tomcat.service.session.JBossCacheManager] Looking for sessions that have expired ...
2008-04-30 12:15:38,675 DEBUG [org.jboss.web.tomcat.service.session.JBossCacheManager] Looking for sessions that have expired ...
error.log file of Jboss server
[root@praveena log]# tail -f boot.log
11:57:40,337 INFO [WebService] Using RMI server codebase: http://10.20.220.15:8083/
11:57:40,337 DEBUG [WebService] Created jboss:service=WebService
11:57:40,338 DEBUG [LocalJBossServerDomain] handleNotification: javax.management.Notification[source=jboss.system:service=ServiceController][type=org.jboss.system.ServiceMBean.create][message=]
11:57:40,338 DEBUG [DefaultManagedObjectFactoryMap] Failed to find factory for event: javax.management.Notification[source=jboss.system:service=ServiceController][type=org.jboss.system.ServiceMBean.create][message=]
11:57:40,338 DEBUG [ServiceController] Creating dependent components for: jboss:service=WebService dependents are: []
11:57:40,338 DEBUG [ServiceController] Creating service jboss:service=Naming
11:57:40,338 DEBUG [ServiceController] waiting in create of jboss:service=Naming waiting on jboss:service=NamingBeanImpl
11:57:40,338 DEBUG [ServiceController] Creating service jboss.system:type=Log4jService,service=Logging
11:57:40,338 DEBUG [Log4jService] Creating jboss.system:type=Log4jService,service=Logging
11:57:40,339 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
Console output of the server after running it
[root@praveena bin]# ./run.sh -Djboss.partition.name=casper -c all -b 10.20.220.15
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /home/praveena/jboss-4.2.2.GA
JAVA: /home/praveena/software/jdk1.6.0_03//bin/java
JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true
CLASSPATH: /home/praveena/jboss-4.2.2.GA/bin/run.jar:/home/praveena/software/jdk1.6.0_03//lib/tools.jar
=========================================================================
11:57:36,982 INFO [Server] Starting JBoss (MX MicroKernel)...
11:57:36,983 INFO [Server] Release ID: JBoss [Trinity] 4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)
11:57:36,984 INFO [Server] Home Dir: /home/praveena/jboss-4.2.2.GA
11:57:36,984 INFO [Server] Home URL: file:/home/praveena/jboss-4.2.2.GA/
11:57:36,985 INFO [Server] Patch URL: null
11:57:36,985 INFO [Server] Server Name: all
11:57:36,985 INFO [Server] Server Home Dir: /home/praveena/jboss-4.2.2.GA/server/all
11:57:36,985 INFO [Server] Server Home URL: file:/home/praveena/jboss-4.2.2.GA/server/all/
11:57:36,985 INFO [Server] Server Log Dir: /home/praveena/jboss-4.2.2.GA/server/all/log
11:57:36,985 INFO [Server] Server Temp Dir: /home/praveena/jboss-4.2.2.GA/server/all/tmp
11:57:36,986 INFO [Server] Root Deployment Filename: jboss-service.xml
11:57:37,250 INFO [ServerInfo] Java version: 1.6.0_03,Sun Microsystems Inc.
11:57:37,250 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.6.0_03-b05,Sun Microsystems Inc.
11:57:37,250 INFO [ServerInfo] OS-System: Linux 2.6.23.1-42.fc8,i386
11:57:37,516 INFO [Server] Core system initialized
11:57:40,337 INFO [WebService] Using RMI server codebase: http://10.20.220.15:8083/
11:57:40,339 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
11:57:40,689 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
11:57:40,689 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
11:57:40,842 INFO [TransactionManagerService] Starting recovery manager
11:57:40,931 INFO [TransactionManagerService] Recovery manager started
11:57:40,931 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
11:57:43,654 INFO [EJB3Deployer] Starting java:comp multiplexer
11:57:44,551 INFO [STDOUT]
-------------------------------------------------------
GMS: address is 10.20.220.15:32968
-------------------------------------------------------
11:57:46,576 INFO [TreeCache] viewAccepted(): [10.20.220.15:32968|0] [10.20.220.15:32968]
11:57:46,592 INFO [TreeCache] TreeCache local address is 10.20.220.15:32968
11:57:46,592 INFO [TreeCache] State could not be retrieved (we are the first member in group)
11:57:46,592 INFO [TreeCache] parseConfig(): PojoCacheConfig is empty
11:57:46,674 INFO [STDOUT] no object for null
11:57:46,696 INFO [STDOUT] no object for null
11:57:46,711 INFO [STDOUT] no object for null
11:57:46,726 INFO [STDOUT] no object for {urn:jboss:bean-deployer}supplyType
11:57:46,736 INFO [STDOUT] no object for {urn:jboss:bean-deployer}dependsType
11:57:48,426 INFO [NativeServerConfig] JBoss Web Services - Native
11:57:48,426 INFO [NativeServerConfig] jbossws-native-2.0.1.SP2 (build=200710210837)
11:57:49,130 INFO [TreeCache] viewAccepted(): [10.20.220.15:32968|1] [10.20.220.15:32968, 10.20.220.135:32796]
11:57:49,168 INFO [SnmpAgentService] SNMP agent going active
11:57:49,180 INFO [TreeCache] locking the subtree at / to transfer state
11:57:49,190 INFO [StateTransferGenerator_140] returning the state for tree rooted in /(1024 bytes)
11:57:49,531 INFO [casper] Initializing
11:57:49,577 INFO [STDOUT]
-------------------------------------------------------
GMS: address is 10.20.220.15:32971
-------------------------------------------------------
11:57:51,585 INFO [casper] Number of cluster members: 1
11:57:51,585 INFO [casper] Other members: 0
11:57:51,585 INFO [casper] Fetching state (will wait for 30000 milliseconds):
11:57:51,585 INFO [casper] State could not be retrieved (we are the first member in group)
11:57:51,616 INFO [HANamingService] Started ha-jndi bootstrap jnpPort=1100, backlog=50, bindAddress=/10.20.220.15
11:57:51,621 INFO [DetachedHANamingService$AutomaticDiscovery] Listening on /10.20.220.15:1102, group=230.0.0.4, HA-JNDI address=10.20.220.15:1100
11:57:52,380 INFO [TreeCache] No transaction manager lookup class has been defined. Transactions cannot be used
11:57:52,492 INFO [STDOUT]
-------------------------------------------------------
GMS: address is 10.20.220.15:32975
-------------------------------------------------------
11:57:54,107 INFO [casper] New cluster view for partition casper (id: 1, delta: 1) : [10.20.220.15:1099, 10.20.220.135:1099]
11:57:54,109 INFO [casper] I am (10.20.220.15:1099) received membershipChanged event:
11:57:54,109 INFO [casper] Dead members: 0 ([])
11:57:54,109 INFO [casper] New Members : 1 ([10.20.220.135:1099])
11:57:54,109 INFO [casper] All Members : 2 ([10.20.220.15:1099, 10.20.220.135:1099])
11:57:54,501 INFO [TreeCache] viewAccepted(): [10.20.220.15:32975|0] [10.20.220.15:32975]
11:57:54,505 INFO [TreeCache] TreeCache local address is 10.20.220.15:32975
11:57:54,668 INFO [STDOUT]
-------------------------------------------------------
GMS: address is 10.20.220.15:32977
-------------------------------------------------------
11:57:56,696 INFO [TreeCache] viewAccepted(): [10.20.220.15:32977|0] [10.20.220.15:32977]
11:57:56,701 INFO [TreeCache] TreeCache local address is 10.20.220.15:32977
11:57:56,853 INFO [TreeCache] viewAccepted(): [10.20.220.15:32975|1] [10.20.220.15:32975, 10.20.220.135:32801]
11:57:57,466 INFO [CorbaNamingService] Naming: [IOR:000000000000002B49444C3A6F6D672E6F72672F436F734E616D696E672F4E616D696E67436F6E746578744578743A312E3000000000000200000000000000F4000102000000000D31302E32302E3232302E313500000DC8000000114A426F73732F4E616D696E672F726F6F74000000000000050000000000000008000000004A414300000000010000001C00000000050100010000000105010001000101090000000105010001000000210000006C000000000000000100000000000000240000001C0000007E00000000000000010000000A3132372E302E302E31000DC900400000000000080606678102010101000000170401000806066781020101010000000764656661756C7400000000000000000000000000000000000000002000000004000000000000001F0000000400000003000000010000002000000000000000020000002000000004000000000000001F0000000400000003]
11:57:57,546 INFO [CorbaTransactionService] TransactionFactory: [IOR:000000000000003049444C3A6F72672F6A626F73732F746D2F69696F702F5472616E73616374696F6E466163746F72794578743A312E30000000000200000000000000F4000102000000000D31302E32302E3232302E313500000DC8000000144A426F73732F5472616E73616374696F6E732F46000000050000000000000008000000004A414300000000010000001C00000000050100010000000105010001000101090000000105010001000000210000006C000000000000000100000000000000240000001C0000007E00000000000000010000000A3132372E302E302E31000DC900400000000000080606678102010101000000170401000806066781020101010000000764656661756C7400000000000000000000000000000000000000002000000004000000000000001F0000000400000003000000010000002000000000000000020000002000000004000000000000001F0000000400000003]
11:57:58,254 INFO [Embedded] Catalina naming disabled
11:57:58,430 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /home/praveena/software/jdk1.6.0_03/jre/lib/i386/server:/home/praveena/software/jdk1.6.0_03/jre/lib/i386:/home/praveena/software/jdk1.6.0_03/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
11:57:58,495 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-10.20.220.15-8080
11:57:58,496 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-10.20.220.15-8009
11:57:58,496 INFO [Catalina] Initialization processed in 242 ms
11:57:58,496 INFO [StandardService] Starting service jboss.web
11:57:58,498 INFO [StandardEngine] Starting Servlet Engine: JBossWeb/2.0.1.GA
11:57:58,537 INFO [Catalina] Server startup in 40 ms
11:57:58,626 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jboss-web.deployer/ROOT.war/
11:57:59,037 INFO [TreeCache] viewAccepted(): [10.20.220.15:32977|1] [10.20.220.15:32977, 10.20.220.135:32803]
11:57:59,135 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/httpha-invoker.sar/invoker.war/
11:57:59,258 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../deploy/jbossws.sar/jbossws-context.war/
11:57:59,321 INFO [TomcatDeployer] deploy, ctxPath=/juddi, warUrl=.../deploy/juddi-service.sar/juddi.war/
11:57:59,492 INFO [RegistryServlet] Loading jUDDI configuration.
11:57:59,493 INFO [RegistryServlet] Resources loaded from: /WEB-INF/juddi.properties
11:57:59,493 INFO [RegistryServlet] Initializing jUDDI components.
11:57:59,759 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy-hasingleton/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
11:58:00,047 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
11:58:00,758 INFO [MailService] Mail Service bound to java:/Mail
11:58:00,905 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
11:58:00,927 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
11:58:00,949 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
11:58:00,977 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
11:58:01,021 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
11:58:01,056 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
11:58:01,115 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar
11:58:01,122 INFO [QuartzResourceAdapter] start quartz!!!
11:58:01,173 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
11:58:01,195 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
11:58:01,201 INFO [RAMJobStore] RAMJobStore initialized.
11:58:01,202 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
11:58:01,202 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
11:58:01,202 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
11:58:01,793 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
11:58:02,083 INFO [A] Bound to JNDI name: queue/A
11:58:02,085 INFO [B] Bound to JNDI name: queue/B
11:58:02,087 INFO [C] Bound to JNDI name: queue/C
11:58:02,089 INFO [D] Bound to JNDI name: queue/D
11:58:02,090 INFO [ex] Bound to JNDI name: queue/ex
11:58:02,113 INFO [testTopic] Bound to JNDI name: topic/testTopic
11:58:02,115 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
11:58:02,117 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
11:58:02,122 INFO [testQueue] Bound to JNDI name: queue/testQueue
11:58:02,158 INFO [UILServerILService] JBossMQ UIL service available at : /10.20.220.15:8093
11:58:02,182 INFO [DLQ] Bound to JNDI name: queue/DLQ
11:58:02,295 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
11:58:02,336 WARN [JAXWSDeployerHookPreJSE] Cannot load servlet class: com.casper.db.kb.fw.LuceneServlet
11:58:02,336 WARN [JAXWSDeployerHookPreJSE] Cannot load servlet class: com.casper.web.portal.servlets.CasperReportPrint
11:58:02,340 INFO [TomcatDeployer] deploy, ctxPath=/casper-2.1, warUrl=.../deploy/casper-2.1.war/
11:58:02,390 INFO [WebappClassLoader] validateJarFile(/home/praveena/jboss-4.2.2.GA/server/all/./deploy/casper-2.1.war/WEB-INF/lib/servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
11:58:02,836 INFO [STDOUT] DBName---------------------casperdb
11:58:02,843 INFO [STDOUT] Schedular Started..........................
11:58:02,857 INFO [STDOUT] yesterday time2008-04-30 11:58:02.856
11:58:02,858 INFO [STDOUT] Date of download:2008-04-30
11:58:02,923 INFO [JBossCacheManager] Starting JBossManager
11:58:02,934 INFO [JBossCacheManager] We are using mod_jk(2) for load-balancing. Will add JvmRouteValve.
11:58:03,059 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
11:58:03,186 INFO [TomcatDeployer] deploy, ctxPath=/sample, warUrl=.../deploy/sample.war/
11:58:03,242 INFO [JBossCacheManager] Starting JBossManager
11:58:03,245 INFO [JBossCacheManager] We are using mod_jk(2) for load-balancing. Will add JvmRouteValve.
11:58:03,461 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-10.20.220.15-8080
11:58:03,498 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-10.20.220.15-8009
11:58:03,509 INFO [Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)] Started in 26s:522ms
11:58:15,398 INFO [STDOUT] Pages Downloaded
11:58:15,411 INFO [STDOUT]
In Constructor. dbSelector = casperdb
11:58:16,177 INFO [STDOUT] Top Source IP's added
11:58:28,972 INFO [STDOUT] Port Details added
11:58:29,229 INFO [STDOUT] Port Trends added
12:00:48,833 ERROR [1]] Session attribute event listener threw exception
java.lang.NullPointerException
at nextapp.echo2.webcontainer.ContainerInstance.sessionWillPassivate(ContainerInstance.java:288)
at org.jboss.web.tomcat.service.session.ClusteredSession.passivate(ClusteredSession.java:901)
at org.jboss.web.tomcat.service.session.JBossCacheManager.storeSession(JBossCacheManager.java:646)
at org.jboss.web.tomcat.service.session.InstantSnapshotManager.snapshot(InstantSnapshotManager.java:49)
at org.jboss.web.tomcat.service.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:98)
at org.jboss.web.tomcat.service.session.JvmRouteValve.invoke(JvmRouteValve.java:84)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)
at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:366)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
PS: I will be online for having your suggestions on tomorrow's night. Please respond me. If I impose any queries.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147711#4147711
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147711
16 years, 7 months
[JBossWS] - Performance issue with WSProvide Ant Task (Windows only)
by pingus
I'm using WSProvide and WSConsume to create a Web Service client library. Using it on a Linux machine performs well. Switching to Windows it's ~ 20 times slower.
After several attempts to solve this, e.g. adjusting the memory parameters, I checked the network traffic having in mind it could by some kind of "timeout" problem while accessing resources. Using Wireshark I've seen several NetBIOS Name queries like this:
NBNS Name query NB JBOSS-4.2.2.GA<00>
NBNS Name query NB LOG4J.JAR;C<00>
NBNS Name query NB MAIL.JAR;C<00>
All of them get the Answer
NBNS Name query response, Requested name does not exist
As a first-try workaround I've deactivated NetBIOS over TCP/IP in the Network settings and it's fast as expected.
But, what is the reason for this? Why NBNS queries for JBOSS-4.2.2.GA?
Is there any better way to solve this, e.g. a Java option to deactivate NetBIOS requests?
Thanks in advance
Pingus
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147710#4147710
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147710
16 years, 7 months
[Clustering/JBoss] - Failover is taking 15 seconds to recognize by other node.
by nobleman1997
Hi,
I am using jboss 4.0.4 version of jboss. I have set up two linux machine and each has jboss AS installed. Both jboss instances are in cluster.I have used apache 2.0 and mod_jk for loadbalancing. I have configured according to jboss 4.0.4 document.Both servers are set up
as node1 and node2 in both loadbalacer.Also i have used stickysession=1 in worker.properties file.
When both servers are up, my application works fine.
Here is the test case.
When i am browsing my application it is on node2. Now i shut it down node2 gracefully. when i try to continue my application within couple of seconds, it gives error like bad request or application doesn't recognized. if i check log on node1, after 15 seconds node 1 says view accepted (it has list of node in cluster which is just one now ). So to me this fail over is not smooth.
shouldn't it work even though node2 is down ? if i try after 15 seconds it works fine.
Same scenario happen when i use stickysession=0.
So my case is like if somebody is buying stuff online and customer is on node2 of cluster and for some reason node2 is down then it should take over instantly (within milliseconds ) so user's experiance would be smooth otherwise user would
have error page.
Could you please let me know what type of configuration should i setup so i can avoid this type of problem?
Thanks
nobleman
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147703#4147703
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147703
16 years, 7 months