java.io.IOException: Too many open files

185 views
Skip to first unread message

Vinod

unread,
Feb 23, 2012, 6:14:17 PM2/23/12
to spymemcached
I am getting following exception when doing put/get in multi-threaded
environment, linux params are set to max.

java.io.IOException: Too many open files
at sun.nio.ch.IOUtil.initPipe(Native Method)
at sun.nio.ch.PollSelectorImpl.<init>(PollSelectorImpl.java:40)
at
sun.nio.ch.PollSelectorProvider.openSelector(PollSelectorProvider.java:
18)
at java.nio.channels.Selector.open(Selector.java:209)
at
net.spy.memcached.MemcachedConnection.<init>(MemcachedConnection.java:
101)
at
net.spy.memcached.DefaultConnectionFactory.createConnection(DefaultConnectionFactory.java:
153)
at net.spy.memcached.MemcachedClient.<init>(MemcachedClient.java:186)

Vinod

unread,
Feb 26, 2012, 12:04:57 PM2/26/12
to spymemcached
OS: Linux
I am getting following exception when connecting to Memcached server.
I did some local test in which I created 200/300 threads and I started
getting connection errors, any idea?

Exception
java.io.IOException: Too many open files
at sun.nio.ch.IOUtil.initPipe(Native Method)
at sun.nio.ch.PollSelectorImpl.<init>(PollSelectorImpl.java:40)
at
sun.nio.ch.PollSelectorProvider.openSelector(PollSelectorProvider.java:
18)
at java.nio.channels.Selector.open(Selector.java:209)
at
net.spy.memcached.MemcachedConnection.<init>(MemcachedConnection.java:
101)
at
net.spy.memcached.DefaultConnectionFactory.createConnection(DefaultConnectionFactory.java:
153)
at net.spy.memcached.MemcachedClient.<init>(MemcachedClient.java:186)

Also I am getting the following exception,

net.spy.memcached.OperationTimeoutException: Timeout waiting for value
at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:1185)
at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:1200)

Seems like spymemcahced has lots of issue, there are lots of post
which has time out exception - is the memcached client related or its
the memcached itself or its network issue?

Reply all
Reply to author
Forward
0 new messages