Timeout waiting for value even though the Couchbase server is not on load
Sat, 10/13/2012 - 02:15
I am getting Timeout exceptions even though there is not much load on the Couchbase server.
net.spy.memcached.OperationTimeoutException: Timeout waiting for value
at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:1003)
at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:1018)
at com.eos.cache.CacheClient.get(CacheClient.java:280)
at com.eos.cache.GenericCacheAccessObject.get(GenericCacheAccessObject.java:55)
...This is how I am creating the client.
List<URI> uris = new ArrayList<URI>(); String[] serverTokens = getServers().split(" "); for (int index = 0; index < serverTokens.length; index++) { uris.add(new URI(serverTokens[index])); } CouchbaseConnectionFactoryBuilder ccfb = new CouchbaseConnectionFactoryBuilder(); ccfb.setProtocol(Protocol.BINARY); ccfb.setOpTimeout(10000); // wait up to 10 seconds for an operation to // succeed ccfb.setOpQueueMaxBlockTime(5000); // wait up to 5 seconds when trying // to enqueue an operation ccfb.setMaxReconnectDelay(1500); CouchbaseConnectionFactory cf = ccfb.buildCouchbaseConnection(uris, bucket, ""); CouchbaseClient client = new CouchbaseClient(cf);
Please help me in resolving this issue. Let me know if further information is required.
This is the couchbase server stats