uohzoaix / spymemcached

Automatically exported from code.google.com/p/spymemcached
0 stars 0 forks source link

how to set the queue size? #77

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
when i used the client to test the write performance of memcachedb, 
i found that the used memory increase quickly, at last, out of memory.
the jvm options: -Xmx 500m  -Xms100m

Exception in thread "MaintThread" java.lang.OutOfMemoryError: Java heap space
    at java.io.BufferedOutputStream.<init>(BufferedOutputStream.java:59)
    at java.io.BufferedOutputStream.<init>(BufferedOutputStream.java:42)
    at com.danga.MemCached.SockIOPool$SockIO.<init>(SockIOPool.java:1595)
    at com.danga.MemCached.SockIOPool.createSocket(SockIOPool.java:782)
    at com.danga.MemCached.SockIOPool.selfMaint(SockIOPool.java:1331)
    at com.danga.MemCached.SockIOPool$MaintThread.run(SockIOPool.java:1497)

how to set the options? 

Original issue reported on code.google.com by waterdh2...@gmail.com on 17 Jul 2009 at 4:52

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Wrong memcached client.  You are using the Whalin client, which is hosted here: 

http://www.whalin.com/memcached/

Original comment by kevin.la...@gmail.com on 24 Jul 2009 at 11:24

GoogleCodeExporter commented 9 years ago

Original comment by dsalli...@gmail.com on 25 Jul 2009 at 6:41

GoogleCodeExporter commented 9 years ago
there's a misunderstanding.
i used the spyclient before the whalin client in my code, for i was testing the 
performance for both client.

so , can i know how to set the queue size?

Original comment by waterdh2...@gmail.com on 27 Jul 2009 at 2:27

GoogleCodeExporter commented 9 years ago
There are three queues, all of them are configured by the connection factory.  
You
can see how the default does it here:

http://dustin.github.com/java-memcached-client/apidocs/net/spy/memcached/Default
ConnectionFactory.html

Original comment by dsalli...@gmail.com on 27 Jul 2009 at 2:30

GoogleCodeExporter commented 9 years ago
thank you very much

Original comment by waterdh2...@gmail.com on 28 Jul 2009 at 2:34