Ehcache 2.10.6 | FAQ | Questions about Errors and Warnings | Replicated Cache
 
Replicated Cache
Why do I get a RemoteCacheException in a replicated cache topology? The error is:
net.sf.ehcache.distribution.RemoteCacheException: Error doing put to remote
peer. Message was: Error unmarshaling return header; nested exception is:
java.net.SocketTimeoutException: Read timed out.
This is typically solved by increasing socketTimeoutMillis. This setting is the amount of time a sender should wait for the call to the remote peer to complete. How long it takes depends on the network and the size of the elements being replicated. The configuration that controls this is the socketTimeoutMillis setting in cacheManagerPeerListenerFactory. 120000 seems to work well for most scenarios.
<cacheManagerPeerListenerFactory
class="net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory"
properties="hostName=fully_qualified_hostname_or_ip,
port=40001,
socketTimeoutMillis=120000"/>

Copyright © 2010-2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.