ehcache 启动报错Error starting heartbeat

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/shulai123/article/details/79951000

 [ERROR] [distribution.MulticastRMICacheManagerPeerProvider:init:98] :: Error starting heartbeat. Error was: error setting options 
java.net.SocketException: error setting options 
at java.net.PlainDatagramSocketImpl.join(Native Method) 
at java.net.PlainDatagramSocketImpl.join(PlainDatagramSocketImpl.java:172) 
at java.net.MulticastSocket.joinGroup(MulticastSocket.java:277) 
at net.sf.ehcache.distribution.MulticastKeepaliveHeartbeatReceiver.init(MulticastKeepaliveHeartbeatReceiver.java:88) 
at net.sf.ehcache.distribution.MulticastRMICacheManagerPeerProvider.init(MulticastRMICacheManagerPeerProvider.java:95) 
at net.sf.ehcache.CacheManager.init(CacheManager.java:327) 

at net.sf.ehcache.CacheManager.<init>(CacheManager.java:253) 


解决方式:

<cacheManagerPeerProviderFactory 

class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory" 
properties="peerDiscovery=automatic, 
hostName=localhost
multicastGroupAddress=230.0.0.1, 
multicastGroupPort=4446, timeToLive=1"/> 
阅读更多

heartbeat启动报错

08-03

日志:rn[root@dbm201 ~]# tail n20 /var/log/ha-log rntail: cannot open `n20' for reading: No such file or directoryrn==> /var/log/ha-log <==rnAug 03 19:29:57 dbm201 heartbeat: [2685]: info: standby: dbm202 can take our foreign resourcesrnAug 03 19:29:57 dbm201 heartbeat: [2718]: info: give up foreign HA resources (standby).rnAug 03 19:29:57 dbm201 heartbeat: [2718]: ERROR: /usr/local/heartbeat/share/heartbeat/ResourceManager givegroup staring resourceManager exited with return code 1rnAug 03 19:29:57 dbm201 heartbeat: [2718]: ERROR: pclose(/usr/local/heartbeat/share/heartbeat/ResourceManager givegroup staring resourceManager) exited with return code 1rnAug 03 19:29:57 dbm201 heartbeat: [2718]: info: foreign HA resource release completed (standby).rnAug 03 19:29:57 dbm201 heartbeat: [2685]: info: Local standby process completed [foreign].rnAug 03 19:29:58 dbm201 heartbeat: [2685]: WARN: 1 lost packet(s) for [dbm202] [10155:10157]rnAug 03 19:29:58 dbm201 heartbeat: [2685]: info: remote resource transition completed.rnAug 03 19:29:58 dbm201 heartbeat: [2685]: info: No pkts missing from dbm202!rnAug 03 19:29:58 dbm201 heartbeat: [2685]: info: Other node completed standby takeover of foreign resources.rnrnrnrncf.conf文件:rndebugfile /var/log/ha-debugrnlogfile /var/log/ha-logrnlogfacility local0rnkeepalive 2rndeadtime 10rnwarntime 6rninitdead 120rnudpport 694rnbcast eth1rn ucast eth1 192.168.2.202rnnode dbm201 rnnode dbm202rnrnrnauthkeys文件:rnauth 1rn1 crcrnrn haresources文件:rn#dbm201 IPaddr::192.168.2.222/24/eth1 httpdrn以上是主机的配置。rnrn启动时显示:rn[root@dbm201 ha.d]# /etc/init.d/heartbeat startrnStarting High-Availability services: staring resourceManagerrnDone.rnrnvip192.168.2.222显示不出,主:192.168.2.201(dbm201 )rn从:192.168.2.202(dbm202)rnrn

没有更多推荐了,返回首页