JBOSS 7.1 + mod_cluster 1.3.1 Final + Apache/2.4.6 : IO error sending command CONFIG to proxy
tuxjo May 1, 2016 4:18 AMHello,
I am trying to configure JBOSS clustering using mod_cluster module and is seeing the below error in the logs
[Server:server-three] 07:57:56,443 INFO [org.jboss.modcluster.mcmp.impl.DefaultMCMPHandler] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]) IO error sending command CONFIG to proxy ip-192-168-1-100.eu-west-1.compute.internal/192.168.1.100:10001: java.net.SocketTimeoutException: Read timed out
[Server:server-three] at java.net.SocketInputStream.socketRead0(Native Method) [rt.jar:1.7.0_99]
[Server:server-three] at java.net.SocketInputStream.read(SocketInputStream.java:152) [rt.jar:1.7.0_99]
[Server:server-three] at java.net.SocketInputStream.read(SocketInputStream.java:122) [rt.jar:1.7.0_99]
[Server:server-three] at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:283) [rt.jar:1.7.0_99]
[Server:server-three] at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:325) [rt.jar:1.7.0_99]
[Server:server-three] at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:177) [rt.jar:1.7.0_99]
[Server:server-three] at java.io.InputStreamReader.read(InputStreamReader.java:184) [rt.jar:1.7.0_99]
[Server:server-three] at java.io.BufferedReader.fill(BufferedReader.java:154) [rt.jar:1.7.0_99]
[Server:server-three] at java.io.BufferedReader.readLine(BufferedReader.java:317) [rt.jar:1.7.0_99]
[Server:server-three] at java.io.BufferedReader.readLine(BufferedReader.java:382) [rt.jar:1.7.0_99]
[Server:server-three] at org.jboss.modcluster.mcmp.impl.DefaultMCMPHandler.sendRequest(DefaultMCMPHandler.java:668)
[Server:server-three] at org.jboss.modcluster.mcmp.impl.DefaultMCMPHandler.sendRequests(DefaultMCMPHandler.java:435)
[Server:server-three] at org.jboss.modcluster.mcmp.impl.DefaultMCMPHandler.status(DefaultMCMPHandler.java:383)
[Server:server-three] at org.jboss.modcluster.mcmp.impl.DefaultMCMPHandler.status(DefaultMCMPHandler.java:347)
[Server:server-three] at org.jboss.modcluster.ModClusterService.status(ModClusterService.java:460)
[Server:server-three] at org.jboss.modcluster.container.catalina.CatalinaEventHandlerAdapter.lifecycleEvent(CatalinaEventHandlerAdapter.java:239)
[Server:server-three] at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:115) [jbossweb-7.0.13.Final.jar:]
[Server:server-three] at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337) [jbossweb-7.0.13.Final.jar:]
[Server:server-three] at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601) [jbossweb-7.0.13.Final.jar:]
[Server:server-three] at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590) [jbossweb-7.0.13.Final.jar:]
[Server:server-three] at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_99]
[Server:server-three]
I have two httpd servers in front of Jboss servers one acting as a Master and other as Slave. Below is the apache configuration:
-------------------------------------------------------------------------------------------------------------
LoadModule cluster_slotmem_module modules/mod_cluster_slotmem.so
LoadModule manager_module modules/mod_manager.so
LoadModule proxy_cluster_module modules/mod_proxy_cluster.so
LoadModule advertise_module modules/mod_advertise.so
Listen 192.168.1.100:80
Listen 192.168.1.100:10001
<VirtualHost 192.168.1.100:10001>
<Directory />
Order deny,allow
Deny from all
Allow from 192.168.
Require all granted
</Directory>
<Location /mod_cluster-manager>
SetHandler mod_cluster-manager
Order deny,allow
Deny from all
Allow from 192.168.
Require all granted
</Location>
KeepAliveTimeout 60
MaxKeepAliveRequests 0
ManagerBalancerName other-server-group
AdvertiseFrequency 5
ServerAdvertise on
EnableMCPMReceive on
AllowDisplay On
</VirtualHost>
-------------------------------------------------------------------------------------------------------------
I am using Apache server "Apache/2.4.6 (CentOS)" and mod_cluster version "mod_cluster-1.3.1.Final", the JBOSS version is "jboss-as-7.1.1.Final". I saw a similar thread JBoss errors after moving to Apache 2.4 and mod_cluster 1.2.1.Final but the case seems to be unresolved - [MODCLUSTER-353] SocketTimeoutException in DefaultMCMPHandler when using httpd 2.4.x - JBoss Issue Tracker
I have attached a screenshot of what I see in the apache server.
Can someone please help to identify and resolve the problem?
Kind Regards,
Meehaf
-
Screenshot.png 253.3 KB