我正在运行 Wildfly 8.1,并尝试使用该standalone-full-ha.xml
配置启动并运行独立(非域)集群。我已经遵循了几个聚类指南,包括这个,但收效甚微。如果我使用该standalone-ha.xml
配置,我可以使集群正常工作,但此配置不包括 HornetQ for JMS 消息传递。但是,当我尝试standalone-full-ha.xml
配置时,我在日志中看到以下内容:
10:40:33,079 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 60) HQ221006: Waiting to obtain live lock
10:40:33,112 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 60) HQ221013: Using NIO Journal
10:40:33,168 INFO [io.netty.util.internal.PlatformDependent] (ServerService Thread Pool -- 60) Your platform does not provide complete low-level API for accessing direct buffers reliably. Unless explicitly requested, heap buffer will always be preferred to avoid potential system unstability.
10:40:33,206 INFO [org.jboss.as.jacorb] (MSC service thread 1-8) JBAS016328: CORBA Naming Service started
10:40:33,243 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 60) HQ221043: Adding protocol support CORE
10:40:33,246 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-8) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
10:40:33,251 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 60) HQ221043: Adding protocol support AMQP
10:40:33,255 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 60) HQ221043: Adding protocol support STOMP
10:40:33,478 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-3) JBAS015012: Started FileSystemDeploymentService for directory /Volumes/Untitled/Servers/wildfly-8.1.0.Final/standalone/deployments
10:40:33,589 INFO [org.jboss.ws.common.management] (MSC service thread 1-2) JBWS022052: Starting JBoss Web Services - Stack CXF Server 4.2.4.Final
10:40:33,620 INFO [org.hornetq.core.server] (Thread-0 (HornetQ-server-HornetQServerImpl::serverUUID=a8a0aba8-1664-11e4-a805-3703f1c18bf5-370179839)) HQ221031: backup announced
10:40:38,301 INFO [org.hornetq.core.server] (ServerService Thread Pool -- 60) HQ221034: Waiting to obtain live lock
它只是挂在“等待获得活锁”消息。服务器从不指示它已启动,我无法访问管理控制台。这是我一直在尝试的...
- 获取库存的 Wildfly 8.1 发行版并解压
- 通过发出命令启动节点 1
./standalone.sh -c standalone-full-ha.xml -Djboss.node.name=nodeA
- 通过发出命令启动节点 2
./standalone.sh -c standalone-full-ha.xml -Djboss.node.name=nodeB -Djboss.socket.binding.port-offset=100
但是,当我这样做时,我会在上面描述的日志中看到消息,并且服务器永远不会完成启动。
难道我做错了什么?我是否需要采取其他步骤才能使集群消息传递和 Wildfly 按预期工作?