3

我创建了一个 WLS 10.3.6 域。我已经启动了节点管理器。我使用 WLS 控制台定义了一个不属于集群的 Coherence 服务器。域中没有定义 Coherence Clusters。

当我使用 WLS 控制台启动 Coherence 服务器时,我在 Coherence 服务器的日志中看到类似以下的消息,最终启动超时。

2012-02-23 15:21:22.807/32.691 Oracle Coherence GE 3.7.1.1 <Warning> (thread=Cluster, member=n/a): This Member(Id=0, Timestamp=2012-02-23 15:20:52.694, Address=10.229.117.91:8888, MachineId=34821, Location=site:,machine:adc2171238,process:30895,member:Server-0, Role=WeblogicWeblogicCacheServer) has been attempting to join the cluster at address /224.3.7.0:37000 with TTL 4 for 30 seconds without success; this could indicate a mis-configured TTL value, or it may simply be the result of a busy cluster or active failover.
2012-02-23 15:21:22.808/32.692 Oracle Coherence GE 3.7.1.1 <Warning> (thread=Cluster, member=n/a): Received a discovery message that indicates the presence of an existing cluster that does not respond to join requests; this is usually caused by a network layer failure:
Message "SeniorMemberHeartbeat"
  {
  FromMember=Member(Id=1, Timestamp=2012-02-21 02:15:42.655, Address=127.0.0.1:8088, MachineId=60314, Location=site:,machine:localhost,process:23722, Role=WeblogicServer)
  FromMessageId=0
  Internal=false
  MessagePartCount=0
  PendingCount=0
  MessageType=17
  ToPollId=0
  Poll=null
  Packets
    {
    }
  Service=ClusterService{Name=Cluster, State=(SERVICE_STARTED, STATE_ANNOUNCE), Id=0, Version=3.7.1}
  ToMemberSet=null
  NotifySent=false

  LastRecvTimestamp=none
  MemberSet=MemberSet(Size=1, ids=[1])
  }

我应该寻找什么?

4

2 回答 2

4

您可能想尝试使用 Coherence JVM(命令)将 TTL(生存时间)设置为零,如下所示:

-Dtangosol.coherence.ttl=0

但是从 OP 作者@vkraemer 看来,这行单播还需要更多内容:

-Dtangosol.coherence.ttl=0 -Dtangosol.coherence.localhost=127.0.0.1

将 TTL 设置为零可确保数据包不会离开原始计算机(在这种情况下为服务器)。否则,程序会尝试连接到远程集群……然后超时,因为主机上没有其他集群网络。

将 localhost 设置为 127.0.0.1 可以有效地设置服务器的单播 IP 地址。这可能是另一个 IP 地址,但此处使用的是 127.0.0.1,因为它是当前未使用的地址(有关更多信息,请参阅本文)。 您可能还想阅读有关loopback的内容。

此外,如果需要,请参阅论坛主题以获取更多信息(特别是 Jonathan.Knight 的帖子。)

于 2012-02-24T00:57:36.133 回答
2

Summea 的回答非常接近。这是最终对我有用的方法:

   -Dtangosol.coherence.ttl=0 -Dtangosol.coherence.localhost=127.0.0.1

我将赞成 summea 的回答并接受我的回答。如果有人发布答案并解释“为什么会这样”,我可能会赞成并接受他们的答案。

于 2012-02-24T01:50:25.487 回答