* Increasing the FD_SETSIZE
@ 2001-04-10 1:56 Ram Madduluri
2001-04-10 2:41 ` David Schwartz
0 siblings, 1 reply; 2+ messages in thread
From: Ram Madduluri @ 2001-04-10 1:56 UTC (permalink / raw)
To: linux-kernel; +Cc: ram
[-- Attachment #1: Type: text/plain, Size: 663 bytes --]
Hi,
I am having trouble with increasing the file descriptor size for my
application - it opens several files for each client session (and needs
to keep them open as long as the session is active, which can be upto 3
hours long). What I see from the application is "open failed in
FileStreamReader::setupFile: Too many open files".
I have bumped up /proc/sys/fs/file-max to 16K, but I am failing at 2638
(cat /proc/sys/fs/file-max returns "2638 97 16384") when the number of
files my app opened reached 1023.
There is a comment in /usr/include/linux/posix_types.h regarding
__FD_SETSIZE being set to 1024. How can I increase this value?
Thanks,
Ram Madduluri
[-- Attachment #2: Card for Ram Madduluri --]
[-- Type: text/x-vcard, Size: 193 bytes --]
begin:vcard
n:Madduluri;Ram
x-mozilla-html:FALSE
url:http://www.kasenna.com
org:Kasenna Inc
adr:;;;;;;
version:2.1
email;internet:ram@kasenna.com
x-mozilla-cpt:;864
fn:Ram Madduluri
end:vcard
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: Increasing the FD_SETSIZE
2001-04-10 1:56 Increasing the FD_SETSIZE Ram Madduluri
@ 2001-04-10 2:41 ` David Schwartz
0 siblings, 0 replies; 2+ messages in thread
From: David Schwartz @ 2001-04-10 2:41 UTC (permalink / raw)
To: ram, linux-kernel
> I am having trouble with increasing the file descriptor size for my
> application - it opens several files for each client session (and needs
> to keep them open as long as the session is active, which can be upto 3
> hours long). What I see from the application is "open failed in
> FileStreamReader::setupFile: Too many open files".
>
> I have bumped up /proc/sys/fs/file-max to 16K, but I am failing at 2638
> (cat /proc/sys/fs/file-max returns "2638 97 16384") when the number of
> files my app opened reached 1023.
>
> There is a comment in /usr/include/linux/posix_types.h regarding
> __FD_SETSIZE being set to 1024. How can I increase this value?
You are tinkering with the wrong value. FD_SETSIZE affects fd_sets used in
the 'select' system call. If you don't use select (and you shouldn't) it's
not an issue.
Also, tampering with the system-wide limits is the wrong approach too.
There is no problem in the kernel for you to fix.
What you are hitting is a per-process resource limit. Read the man pages on
'setrlimit' or the bash help on 'ulimit'.
DS
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-04-10 2:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-10 1:56 Increasing the FD_SETSIZE Ram Madduluri
2001-04-10 2:41 ` David Schwartz
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.