简体   繁体   English

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

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

I am trying create a cluster of JBoss AS 7.1.1 (two instances in one machine with port offset as 100) in standalone mode. 我正在尝试在独立模式下创建JBoss AS 7.1.1集群(一台机器上的两个实例,端口偏移为100)。 I am using apache (ver 2.2.22) with mod_cluster(ver 1.2.0) for load balancing. 我正在使用apache(2.2.22版)和mod_cluster(1.2.0版)进行负载平衡。 When I bring up both JBoss I could see the cluster view updated with both the nodes. 当我同时启动两个JBoss时,我可以看到两个节点都更新了集群视图。 But, I am getting the following error in 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

In Apache logs, here is what I have: 在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

It looks like apache is crashing due to faulty module mod_cluster_proxy.so module. 似乎由于模块mod_cluster_proxy.so模块故障,apache崩溃了。 I could figure it out from the windows event logs. 我可以从Windows事件日志中找出来。 Here is what I have in the event log: 这是事件日志中的内容:

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

Can anyone please help me out with how to solve this? 谁能帮我解决这个问题? Do I have to use a different version of mod_cluster? 我必须使用其他版本的mod_cluster吗? Is there any config changes I need to make? 我需要进行任何配置更改吗? Here are my configs: 这是我的配置:

standalone-ha.xml 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>

httpd.conf in apache: 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>

Kindly let me know how to solve this.. 请让我知道如何解决此问题。

No, this is definitely not a configuration error. 不,这绝对不是配置错误。 Please, try it out with 1.2.6 and stay tuned for 1.2.9 and 1.3.x builds... 请使用1.2.6进行尝试,并继续关注1.2.9和1.3.x版本...

Edit: The latest and greatest build built for the community is mod_cluster 1.3.1.Final . 编辑:为社区构建的最新,最大的版本是mod_cluster 1.3.1.Final

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

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