bigdata4u / spymemcached

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

java.io.IOException: Too many open files #237

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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)

Original issue reported on code.google.com by cbin...@gmail.com on 23 Feb 2012 at 10:13

GoogleCodeExporter commented 8 years ago
Please don't use the bug system for questions.

Chances are you need to set the limit on open file descriptors higher for the 
user/process.  If you have further questions, please send an email to the 
mailing list.

Original comment by ingen...@gmail.com on 23 Feb 2012 at 11:01

GoogleCodeExporter commented 8 years ago
Thanks for the response, I have posted this in mailing list as well. I add it 
here coz I saw lots of failure in multithreaded environment. I get timeouts, 
connection error.

Original comment by cbin...@gmail.com on 23 Feb 2012 at 11:18

GoogleCodeExporter commented 8 years ago
I am also getting the following errors - I know this should be in different 
thread, I have also posted this in mailing list pending approval.

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)

Original comment by cbin...@gmail.com on 26 Feb 2012 at 5:07