wine and too many files open

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Gagi2
Newbie
Newbie
Posts: 2
Joined: Thu Jul 11, 2013 6:36 am

wine and too many files open

Post by Gagi2 »

hi&hello...
i already have read the section in the faq... but this didnt resolve my problem...

but first things first
im running 3 dayz servers on my debian 6 machine
im starting them with xvfb every one in his own screen
so far so good...
when i want to start a 4th server now i get this message

Code: Select all

err:winediag:FILE_CreateFile Too many open files, ulimit -n probably needs to be increased
when i stop one of the 3 servers then i can start the 4th without any problems...
but there can only be 3 started at the same time...

i already set the limit to the double amount as it was on standard (1024 -> 2048)
i also tried it with more than 10k
in my etc/security/limits.conf i have now

Code: Select all

gameserver	hard	nofile	2048
gameserver	soft	nofile	2048
ulimit -Hn and ulimit -Sn shows them correct too
the server was also rebooted for testing...
but the problem still remains...

i hope someone can help me out with this one... im slowly running out of ideas right now...

regards
User avatar
DanKegel
Moderator
Moderator
Posts: 1164
Joined: Wed May 14, 2008 11:44 am

Re: wine and too many files open

Post by DanKegel »

It's probably the wineserver hitting some limit.
How many unix fds does it have open?

Find its pid, then do
ls /proc/NNNN/fd | wc -l
Gagi2
Newbie
Newbie
Posts: 2
Joined: Thu Jul 11, 2013 6:36 am

Re: wine and too many files open

Post by Gagi2 »

it says

Code: Select all

gameserver@server01:~$ ls /proc/3731/fd | wc -l
872
with the 3 servers running...

i have stopped all 3 and checked the values with every server
so here we go

DayZ Epoch running

Code: Select all

gameserver@server01:~$ ls /proc/24917/fd | wc -l
356
DayZ Epoch & DayZ Standard running

Code: Select all

gameserver@server01:~$ ls /proc/24917/fd | wc -l
610
DayZ Epoch & DayZ Standard & DayZ Origins running

Code: Select all

gameserver@server01:~$ ls /proc/24917/fd | wc -l
874
Locked