Please have such or similar line in /boot/loader.conf: > kern.maxfiles="25000" Or, increase it even higher. Servers: http://beefy9.nyi.freebsd.org. http://package21.nyi.freebsd.org, etc. The package devel/RStudio routinely fails in build because it has too many files open at the same time. Please see this sample log: http://package21.nyi.freebsd.org/data/111amd64-default-qat/455493/logs/errors/RStudio-1.1.385.log
This is a portmgr thing - they adjust those parts of the configuration on the package builders.
Poudriere also limits to 1024 max files per process.
The 1024 limits is set by poudriere, not on servers and it's for performance reasons.
(In reply to Antoine Brodin from comment #3) It doesn't fail for me in poudriere though.
Antoine, you are right, on my system MAX_FILES=15000 in poudriere.conf. This is what probably really limited the file number. Could you please adjust this one to some higher value to see if this corrects the problem with RStudio?
Are you sure that there is no file descriptor leak in RStudio?
(In reply to Antoine Brodin from comment #6) They use external binaries for build, like java toolkit, etc. There might be a leak, but this doesn't appear likely. It's just a large project, something opens too many files.
(In reply to Antoine Brodin from comment #6) @antoine, did you have a chance to try increase MAX_FILES?
This problem has occurred in the RStudio port and has been resolved with a special feature in poudriere that increases the number of open files for a specific port.