Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

Too many open files?

My linux box has already extend the limit of no. of open files to 8192. From the output of "lsof" command, there are less than 2500 opened files. Yet I still got the following problem.

SEVERE com.gigaspaces.lrmi: cant create a selector for async calls
java.io.IOException: Too many open files
    at sun.nio.ch.EPollArrayWrapper.epollCreate(Native Method)
    at sun.nio.ch.EPollArrayWrapper.<init>(EPollArrayWrapper.java:68)
    at sun.nio.ch.EPollSelectorImpl.<init>(EPollSelectorImpl.java:52)
    at sun.nio.ch.EPollSelectorProvider.openSelector(EPollSelectorProvider.java:18)
    at java.nio.channels.Selector.open(Selector.java:209)
    at com.gigaspaces.lrmi.nio.selector.handler.AbstractSelectorThread.<init>(AbstractSelectorThread.java:37)
....

I'm using XAP6.6.3. No. of GSC is 4.

Any clue?

Thank you very much,

Joe

This thread was imported from the previous forum.
For your reference, the original is available here

asked 2009-02-13 16:56:33 -0500

mytofu gravatar image

updated 2013-08-08 09:52:00 -0500

jaissefsfex gravatar image
edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
0

Set in /etc/security/limits.conf (root permissions required):
? soft nofile 16384
? hard nofile 65536
? soft nproc 2047
? hard nproc 32768

U might need to reboot the machine after changing this file to allow the changes to take affect.

Nofile is relevant for the amount of connection/sockets and nproc is relevant for amount of threads.

In general each application thread opens a connection/socket to the space.

Are you using executors or having highly multi threaded application?

Shay

answered 2009-02-13 23:14:35 -0500

shay hassidim gravatar image
edit flag offensive delete link more
0

Set in /etc/security/limits.conf (root permissions required): ? soft nofile 16384 ? hard nofile 65536 ? soft nproc 2047 ? hard nproc 32768

U might need to reboot the machine after changing this file to allow the changes to take affect.

Nofile is relevant for the amount of connection/sockets and nproc is relevant for amount of threads.

In general each application thread opens a connection/socket to the space.

Are you using executors or having highly multi threaded application?

Shay

answered 2009-02-13 23:11:57 -0500

shay hassidim gravatar image
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2009-02-13 16:56:33 -0500

Seen: 666 times

Last updated: Feb 13 '09