This forum has been archived. All content is frozen. Please use KDE Discuss instead.

error: too many oper files on solaris 10

Tags: None
(comma "," separated)
nemsep
Registered Member
Posts
2
Karma
0
i get message
can't opend index file <some path>/tor.index, too many files open


this happens within 2 minuets from startup for first file, and repeats every few minutes until all downloads are stopped.

i have some 12 torrents active, and all plug ins are unloaded.

software versions are:
Code: Select all
Qt: 3.3.4
KDE: 3.4.1
KTorrent: 2.1.3
SunOS unknown 5.10 Generic_118855-14 i86pc i386 i86pc


i tried with:
Code: Select all
ulimit -n 60000; ktorrent;

with no result. I also tried to set limit from within code so I added in main.cpp, before signal call:
Code: Select all
...
    rlimit rlm;
    rlm.rlim_cur = (rlim_t) (256 * 256);
    rlm.rlim_max = (rlim_t) (256 * 256);
    setrlimit(RLIMIT_NOFILE, &rlm);
    printf("\n FileLimit %i \n", ulimit(UL_GDESLIM, 0));

    // ignore SIGPIPE's
    signal(SIGPIPE,SIG_IGN);
...

with no result again (it does print file limit to be >65000).


I don't know if I am trying to unlimit wrong process? Any help would be appreciated.
George
Moderator
Posts
5421
Karma
1

Sat Apr 21, 2007 11:37 am
What if you run with the --nofork option ?
nemsep
Registered Member
Posts
2
Karma
0

Sat Apr 21, 2007 2:16 pm
it doesn't help, here is tail of terminal output:
Code: Select all
Qt: Warning: KTempFile: Error trying to open /export/home/sodoom/.kde/share/config/ktorrentrc.lockOVgaaa.tmp: Too many open files
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = ktorrent path = <unknown> pid = 19641

it core dumps at exit if it starts with file errors
George
Moderator
Posts
5421
Karma
1

Mon Apr 23, 2007 6:48 pm
There have been some change in SVN version which should make the to many open files problem more difficult to occur.

Maybe you can try the SVN version ?

Btw how many files are there in your torrents ? And how are your connection limits set ?


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]