I use a conole application which I wrote, under Debian with wine-1.6.2 (32-bit).
At one particular server I hit the "Too many open files in system" error enough often and sometimes it causes the crash of important applications. I've found that the reason is too high amount of files like these (lsof output)
I would say when the app works number of files is > 11000, when not it's about 5000. Unfortunately, I can't increase the number of files because of strict limits of the VPS hosting company.wineserve 11584 user1 104u sock 0,6 0t0 1562214199 can't identify protocol
wineserve 11584 user1 105u sock 0,6 0t0 1562214203 can't identify protocol
wineserve 11584 user1 106u sock 0,6 0t0 1562214207 can't identify protocol
wineserve 11584 user1 107u sock 0,6 0t0 1562214211 can't identify protocol
wineserve 11584 user1 108u sock 0,6 0t0 1562214215 can't identify protocol
The app has 3 threads (2 created from the main thread). Main thread does not work with sockets, the working procedure of created threads is looks like:
Code: Select all
socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)
bind();
while not shutdown do
begin
RecvFrom();
//process the data
SendTo()
end;
Closesocket();