Too many open files in system

Hi, im writing this because i don`t know any further.
I always get the message “Too many open files in system” after we ran some
application. They are already closed, or some still open. It is already
enough to startup one special program and end it again. The next program
won´t startup then with the message:

Too many open files in system

We figured out that everytime this happenes the Max files hit the Alloc`d
line.
May the Used too, but thats unsure, because you generally can not run
fsysinfo after the error occures :wink:. Only if u still can close a lot of
Apps, so some fd´s are “free´d”.

see down

Used Max Alloc’d Limit Hits Misses Ratio


inodes 12 17 596 1000 13481 596 95.77%
names n/a n/a 706 1500 9512 708 92.90%
files 8 24 24 500
locks 0 0 500 500
threads 0 3 4 4

data hits:delays:misses = 131806:0:1018 (99.23%)
metadata hits:misses = 35502:19415 (64.65%)

188025 cache lookups (4/sec)
1953 cache writes (0/sec)
115436 disk reads (2/sec)
1248 disk writes (0/sec)

809 open calls (0/sec)
1548 stat calls (0/sec)
3812 namei calls (0/sec)
394 fstat calls (0/sec)
35678 read calls (0/sec)
66 write calls (0/sec)



We have a workaround right now to open about 250 files right after startup
and close them again, so the Alloc`d border rises up to 250. But thats not
something that should be nessecary.

If you experienced similar trouble or solved that problem, please answer.

( i am tired of rebooting … since after the error occured, you can not
open any program.)

btw. we already had a long discussion about this @ osnews.com

http://www.osnews.com/phorum/read.php?f=10&i=986&t=986#reply_986

just for completing the information.

btw. we already had a long discussion about this @ osnews.com

http://www.osnews.com/phorum/read.php?f=10&i=986&t=986#reply_986

just for completing the information.

Look at the -H option of Fsys

“micro” <micro@lobo.de> wrote in message news:c4e581$b54$1@inn.qnx.com

btw. we already had a long discussion about this @ osnews.com

http://www.osnews.com/phorum/read.php?f=10&i=986&t=986#reply_986

just for completing the information.

are you talking about the undocumented -H option?

what does it do?

Mario Charest wrote:

\

Look at the -H option of Fsys

are you talking about the undocumented -H option?

what does it do?

Mario Charest wrote:

\

Look at the -H option of Fsys

are you talking about the undocumented -H option?

what does it do?

Mario Charest wrote:

\

Look at the -H option of Fsys

are you talking about the undocumented -H option?

what does it do?

Mario Charest wrote:

\

Look at the -H option of Fsys

sry, we have some trouble with our proxy @ work … i will only post from
home now, won` t happen again…





micro wrote:

are you talking about the undocumented -H option?

what does it do?

Mario Charest wrote:

Look at the -H option of Fsys

I am facing an error message “TOO MANY FILES OPEN” when
running an application. As suggested by QNX documents i changed the
system limits for file descriptors using setrlimit() function. but
proved futile. I have increased the limit on file descriptors, but it
did not prove useful. Does anyone have any idea . Kindly reply in this
regard as it is urgent.

As Mario suggested earlier in this thread, look at the -H option to Fsys:

http://www.qnx.com/developers/docs/qnx_4.25_docs/qnx4/utils/f/fsys.html#Heap_size


Ryan J. Allen
ryallen@qnx.com


baronajay wrote:

I am facing an error message “TOO MANY FILES OPEN” when
running an application. As suggested by QNX documents i changed the
system limits for file descriptors using setrlimit() function. but
proved futile. I have increased the limit on file descriptors, but it
did not prove useful. Does anyone have any idea . Kindly reply in this
regard as it is urgent.

On Fri, 09 Mar 2007 17:06:32 +0300, Ryan J. Allen <ryallen@qnx.com> wrote:

As Mario suggested earlier in this thread, look at the -H option to Fsys:
http://www.qnx.com/developers/docs/qnx_4.25_docs/qnx4/utils/f/fsys.html#Heap_size
I once too got this “TOO MANY OPEN FILES” error.

In my case the “-H” option was set, but set for too big HDD than really
was attached: I had there the “-Hdisk80” with just 40GB disk.

Can the “oversized” heap cause problems too?

Tony.

Use the -p flag on your Proc32 , bump it up to 1000 or something and rebuild
your boot.

“Tony” <mts.spb.suxx@mail.ru> wrote in message
news:op.toxexqp4o93ri4@mobile.wst.quantum.ru

On Fri, 09 Mar 2007 17:06:32 +0300, Ryan J. Allen <> ryallen@qnx.com> > wrote:

As Mario suggested earlier in this thread, look at the -H option to Fsys:
http://www.qnx.com/developers/docs/qnx_4.25_docs/qnx4/utils/f/fsys.html#Heap_size
I once too got this “TOO MANY OPEN FILES” error.
In my case the “-H” option was set, but set for too big HDD than really
was attached: I had there the “-Hdisk80” with just 40GB disk.

Can the “oversized” heap cause problems too?

Tony.