Hi Dustin
This is Umashankar. I am trying to put 60 million object into
memcached. I am having memcached 1.4.7 version. I have sufficient RAM to
put object as I have assign 14GB to my memcached. but once I am trying to
put objects it showing me following message
First these :
2012-08-01 14:05:14.959 INFO net.spy.memcached.MemcachedConnection:
sun.nio.ch.SelectionKeyImpl@6fc5f743 has 1, interested in 5
2012-08-01 14:05:17.405 INFO net.spy.memcached.MemcachedConnection:
sun.nio.ch.SelectionKeyImpl@6fc5f743 has a ready op, handling IO
2012-08-01 14:05:17.662 INFO net.spy.memcached.MemcachedConnection:
sun.nio.ch.SelectionKeyImpl@2d5253d5 has 5, interested in 5
2012-08-01 14:05:17.662 INFO net.spy.memcached.MemcachedConnection:
sun.nio.ch.SelectionKeyImpl@2d5253d5 has a ready op, handling IO
2012-08-01 14:05:17.663 INFO net.spy.memcached.MemcachedConnection:
sun.nio.ch.SelectionKeyImpl@2d5253d5 has 5, interested in 5
2012-08-01 14:05:17.663 INFO net.spy.memcached.MemcachedConnection:
sun.nio.ch.SelectionKeyImpl@2d5253d5 has a ready op, handling IO
2012-08-01 14:05:17.664 INFO net.spy.memcached.MemcachedConnection:
sun.nio.ch.SelectionKeyImpl@2d5253d5 has 5, interested in 5
2012-08-01 14:05:17.665 INFO net.spy.memcached.MemcachedConnection:
sun.nio.ch.SelectionKeyImpl@2d5253d5 has a ready op, handling IO
2012-08-01 14:05:17.665 INFO net.spy.memcached.MemcachedConnection:
sun.nio.ch.SelectionKeyImpl@2d5253d5 has 5, interested in 5
2012-08-01 14:05:17.665 INFO net.spy.memcached.MemcachedConnection:
sun.nio.ch.SelectionKeyImpl@2d5253d5 has a ready op, handling IO
2012-08-01 14:05:17.666 INFO net.spy.memcached.MemcachedConnection:
sun.nio.ch.SelectionKeyImpl@2d5253d5 has 5, interested in 5
Then blow this exception :
java.lang.IllegalStateException: Timed out waiting to add Cmd: set Key:
ECO-MAIL-CACHE:1d41402abc4b2a76b9719d9219828753875 Flags: 1 Exp: 0 Data
Length: 394(max wait=10000ms)
at
net.spy.memcached.protocol.TCPMemcachedNodeImpl.addOp(TCPMemcachedNodeImpl.java:346)
at
net.spy.memcached.MemcachedConnection.addOperation(MemcachedConnection.java:697)
at
net.spy.memcached.MemcachedConnection.addOperation(MemcachedConnection.java:677)
at
net.spy.memcached.MemcachedConnection.enqueueOperation(MemcachedConnection.java:639)
at
net.spy.memcached.MemcachedClient.asyncStore(MemcachedClient.java:296)
at net.spy.memcached.MemcachedClient.set(MemcachedClient.java:727)
at com.ecomail.emx.core.cache.DefaultCache.set(DefaultCache.java:63)
at
com.ecomail.emx.exchange.db.SubscriptionCacheThread.createSubcriptionCache(SubscriptionCacheThread.java:88)
at
com.ecomail.emx.exchange.db.SubscriptionCacheThread.call(SubscriptionCacheThread.java:52)
at
com.ecomail.emx.exchange.db.SubscriptionCacheThread.call(SubscriptionCacheThread.java:22)
at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
After putting almost 2 million objects into memcached.
Can you please suggest me, where am making mistake
This is how am starting my memcached instance
*memcached -m 14000 -l 192.168.10.242 -p 11211*
*
*
On Saturday, February 11, 2012 11:08:13 AM UTC+5:30, Dustin wrote:
>
>
> On Friday, February 10, 2012 9:21:22 PM UTC-8, mCon Dev Team wrote:
>>
>> My memcached set's are passing, get's are passing and telnet stats
>> reports get hits, also memory used. So I dont see a issue here.
>>
>
> That's fine. It's not doing what you think it's doing, and you don't
> understand why changing the binding away from forced localhost will fix
> your client that was supposed to be connecting to localhost from attempting
> to connect to a different address and complaining that it was unable to do
> so. I expect that without fixing and understanding your problem, you will
> experience new and exciting failures in the future.
>
> When you come back, please bring a small sample bit of code that
> demonstrates your problem.
>