解决项目启动 报Error starting heartbeat. Error was: Can't assign requested addre

问题
master
shilinxiao 2018-11-19 10:29:22 +08:00
parent 8a920a1064
commit 8ba2c15cbb
1 changed files with 37 additions and 30 deletions

View File

@ -1,38 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
<ehcache updateCheck="false">
<diskStore path="java.io.tmpdir" />
<diskStore path="java.io.tmpdir"/>
<!-- Cluster localhost setting -->
<cacheManagerPeerProviderFactory
class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"
properties="peerDiscovery=automatic, multicastGroupAddress=230.0.0.1,
multicastGroupPort=4446, timeToLive=32"/>
<cacheManagerPeerListenerFactory
class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory"
properties="hostName=localhost, port=40001,socketTimeoutMillis=2000" />
<!-- Cluster localhost setting -->
<!--<cacheManagerPeerProviderFactory-->
<!--class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"-->
<!--properties="peerDiscovery=automatic, multicastGroupAddress=230.0.0.1,-->
<!--multicastGroupPort=4446, timeToLive=32"/>-->
<cacheManagerPeerProviderFactory
class="net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory"
properties="peerDiscovery=automatic,
hostName=localhost,
multicastGroupAddress=230.0.0.1,
multicastGroupPort=4446, timeToLive=1"/>
<cacheManagerPeerListenerFactory
class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory"
properties="hostName=localhost, port=40001,socketTimeoutMillis=2000"/>
<cache name="dictCache" maxElementsInMemory="500" overflowToDisk="true"
eternal="true">
<cacheEventListenerFactory
class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
properties="replicatePuts=false,replicateUpdatesViaCopy=false" />
</cache>
<cache name="dictCache" maxElementsInMemory="500" overflowToDisk="true"
eternal="true">
<cacheEventListenerFactory
class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
properties="replicatePuts=false,replicateUpdatesViaCopy=false"/>
</cache>
<cache name="eternalCache" maxElementsInMemory="500"
overflowToDisk="true" eternal="false" timeToIdleSeconds="1200"
timeToLiveSeconds="1200">
<cacheEventListenerFactory
class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
properties="replicatePuts=false,replicateUpdatesViaCopy=false" />
</cache>
<!-- DefaultCache setting. Modify ehcache-safe.xml for timeToIdleSeconds,timeToLiveSecond,diskExpiryThreadIntervalSeconds
Use ehcache-safe.xml default for maxElementsInMemory,maxElementsOnDisk,overflowToDisk,eternal
Use ehcache default for memoryStoreEvictionPolicy,diskPersistent,. -->
<defaultCache maxElementsInMemory="10000" overflowToDisk="true"
eternal="false" memoryStoreEvictionPolicy="LRU" maxElementsOnDisk="10000000"
diskExpiryThreadIntervalSeconds="600" timeToIdleSeconds="3600"
timeToLiveSeconds="100000" diskPersistent="false" />
<cache name="eternalCache" maxElementsInMemory="500"
overflowToDisk="true" eternal="false" timeToIdleSeconds="1200"
timeToLiveSeconds="1200">
<cacheEventListenerFactory
class="net.sf.ehcache.distribution.RMICacheReplicatorFactory"
properties="replicatePuts=false,replicateUpdatesViaCopy=false"/>
</cache>
<!-- DefaultCache setting. Modify ehcache-safe.xml for timeToIdleSeconds,timeToLiveSecond,diskExpiryThreadIntervalSeconds
Use ehcache-safe.xml default for maxElementsInMemory,maxElementsOnDisk,overflowToDisk,eternal
Use ehcache default for memoryStoreEvictionPolicy,diskPersistent,. -->
<defaultCache maxElementsInMemory="10000" overflowToDisk="true"
eternal="false" memoryStoreEvictionPolicy="LRU" maxElementsOnDisk="10000000"
diskExpiryThreadIntervalSeconds="600" timeToIdleSeconds="3600"
timeToLiveSeconds="100000" diskPersistent="false"/>
</ehcache>