我正在尝试在独立模式下创建一个 JBoss AS 7.1.1 集群(一台机器上的两个实例,端口偏移为 100)。我正在使用 apache (ver 2.2.22) 和 mod_cluster(ver 1.2.0) 进行负载平衡。当我调出两个 JBoss 时,我可以看到两个节点都更新了集群视图。但是,我在 Jboss 中收到以下错误:
ERROR [org.jboss.modcluster.mcmp.impl.DefaultMCMPHandler] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]) Error [MEM: MEM: Can't read node: {4}] sending command STATUS to proxy 127.0.0.1/127.0.0.1:6666, configuration will be reset
在 Apache 日志中,这是我所拥有的:
[notice] Parent: child process exited with status 255 -- Restarting.
[notice] Advertise initialized for process 4924
[notice] Apache/2.2.22 (Win64) PHP/5.3.13 mod_cluster/1.2.0.Final configured -- resuming normal operations
[notice] Server built: May 13 2012 19:41:17
[notice] Parent: Created child process 2000
[notice] Child 2000: Child process is running
[notice] Child 2000: Acquired the start mutex.
[notice] Child 2000: Starting 64 worker threads.
[notice] Child 2000: Starting thread to listen on port 6666.
[notice] Child 2000: Starting thread to listen on port 80.
[notice] Child 2000: Starting thread to listen on port 80.
[warn] manager_handler STATUS error: MEM: Can't read node
看起来 apache 由于模块 mod_cluster_proxy.so 模块故障而崩溃。我可以从windows事件日志中弄清楚。这是我在事件日志中的内容:
Faulting application name: httpd.exe, version: 2.2.22.0, time stamp: 0x4faff1ba
Faulting module name: mod_proxy.so, version: 2.2.21.0, time stamp: 0x4f3494b7
Exception code: 0xc0000005
Fault offset: 0x0000000000003115
Faulting process id: 0x12b4
Faulting application start time: 0x01cf4735c4635dbb
谁能帮我解决这个问题?我必须使用不同版本的 mod_cluster 吗?我需要进行任何配置更改吗?这是我的配置:
独立-ha.xml
<subsystem xmlns="urn:jboss:domain:modcluster:1.0">
<mod-cluster-config advertise-socket="modcluster" proxy-list="127.0.0.1:6666">
<dynamic-load-provider>
<load-metric type="busyness"/>
</dynamic-load-provider>
</mod-cluster-config>
</subsystem>
apache中的httpd.conf:
Listen 127.0.0.1:6666
<VirtualHost 127.0.0.1:6666>
<Directory />
Order deny,allow
Deny from all
Allow from 127.0.0
</Directory>
KeepAliveTimeout 300
MaxKeepAliveRequests 0
AdvertiseFrequency 5
ManagerBalancerName mycluster
EnableMCPMReceive
<Location /mod_cluster-manager>
SetHandler mod_cluster-manager
Order deny,allow
Deny from all
Allow from 127.0.0
AllowDisplay On
</Location>
</VirtualHost>
请让我知道如何解决这个问题..