簡體   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