Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | SDKs | SDKs

Timeout waiting for value even though the Couchbase server is not on load

1 reply [Last post]
  • Login or register to post comments
Sat, 10/13/2012 - 02:15
Amit Daga
Offline
Joined: 10/13/2012
Groups: None

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.

Top
  • Login or register to post comments
Sat, 10/13/2012 - 03:47
Amit Daga
Offline
Joined: 10/13/2012
Groups: None

This is the couchbase server stats

$ telnet 127.0.0.1 11212
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
stats
STAT delete_misses 0
STAT rejected_conns 0
STAT connection_structures 5000
STAT reclaimed 0
STAT limit_maxbytes 67108864
STAT decr_hits 0
STAT curr_conns_on_port_11209 11
STAT curr_conns_on_port_11210 44
STAT curr_connections 57
STAT rusage_system 502.526604
STAT cas_misses 0
STAT bytes 1792031547
STAT get_misses 1068859
STAT bytes_read 20572612404
STAT get_hits 10369184
STAT decr_misses 0
STAT rusage_user 408.748860
STAT bucket_conns 32
STAT cmd_flush 0
STAT uptime 245313
STAT max_conns_on_port_11209 1000
STAT total_items 11834471
STAT incr_hits 0
STAT max_conns_on_port_11210 9000
STAT time 1350125165
STAT daemon_connections 4
STAT pointer_size 64
STAT version 1.4.4_597_g524945f
STAT engine_maxbytes 8594128896
STAT evictions 0
STAT total_connections 148818
STAT curr_items 1177205
STAT delete_hits 0
STAT cas_hits 0
STAT auth_errors 0
STAT threads 4
STAT pid 13886
STAT auth_cmds 198
STAT cas_badval 0
STAT cmd_set 11834471
STAT bucket_active_conns 1
STAT cmd_get 11438043
STAT conn_yields 9200
STAT listen_disabled_num 0
STAT bytes_written 33772124758
STAT libevent 2.0.11-stable
STAT accepting_conns 1
STAT incr_misses 0
END

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker