繁体   English   中英

Jboss集群:mod_cluster mod_cluster_proxy.so导致apache崩溃

[英]Jboss clustering: mod_cluster mod_cluster_proxy.so causing apache to crash

我正在尝试在独立模式下创建JBoss AS 7.1.1集群(一台机器上的两个实例,端口偏移为100)。 我正在使用apache(2.2.22版)和mod_cluster(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

似乎由于模块mod_cluster_proxy.so模块故障,apache崩溃了。 我可以从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吗? 我需要进行任何配置更改吗? 这是我的配置:

standalone-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>

请让我知道如何解决此问题。

不,这绝对不是配置错误。 请使用1.2.6进行尝试,并继续关注1.2.9和1.3.x版本...

编辑:为社区构建的最新,最大的版本是mod_cluster 1.3.1.Final

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM