Console reporting 'Too many files open'

Ask for help and report issues with the Mac OS X version of Transmission
Post Reply
molestrangler
Posts: 28
Joined: Sun Nov 02, 2008 3:23 am

Console reporting 'Too many files open'

Post by molestrangler »

Hi,

Not sure if this was an issue prior to upgrading to 2.90, but I'm sure I haven seen this message in Console. I'm running OS X 1.10.5.

Transmission[25942]: dnssd_clientstub ConnectToServer: socket failed 24 Too many open files

And console has 4,000 of these messages since upgrading yesterday.

I compile from using the source code, I don't download the binary.

svn co svn://svn.transmissionbt.com/Transmission/trunk Transmission -r 14695

The only change is to increase DEFAULT_CACHE_SIZE_MB = 100 in version.c as this stops my HDs from being thrashed. I also change the target to 10.10, and that's it.

Is it connected with the 3,000 limit to 'Global maximum connections"?
molestrangler
Posts: 28
Joined: Sun Nov 02, 2008 3:23 am

Re: Console reporting 'Too many files open'

Post by molestrangler »

OK, I can do that but it will limit the number of connections to 800.

It seems rather odd that in the GUI we can set the maximum number of global connections to 3,000 but your suggestion seems to point to the actual global limit is below 300.

As I prefer to compile myself and have a high spec Mac Pro that should be able to handle this, I'll have a look around the source code and see if this limit is artificial and can be increased. Unless someone can suggest what I can change or look for?

I'll also have dig around in sysctl to see if there is an OS limit or something. As I said before I can't recall see this in my logs before so not sure if changing sysctl will solve this.
molestrangler
Posts: 28
Joined: Sun Nov 02, 2008 3:23 am

Re: Console reporting 'Too many files open'

Post by molestrangler »

I've not opened a report on trac cuz I increased the system wide maximum file open (see below) and after two days I'm no longer getting the error message in the syslogs:

Code: Select all

sudo sysctl -w kern.maxfiles=20480
sudo sysctl -w kern.maxfilesperproc=24576
Transmission did not have that many files open (only 190), 93593 is the pid for Transmission:

Code: Select all

lsof -p 93594 >values.txt
So for me as my Mac Pro is a hard working box I suspect the system as a whole needed the changes above.
Post Reply