linuxlinux-kernelulimitsysctlcloudcaptain

How to increase the open files user limit in boxfuse?


I'm receiving a "TooManyOpenFiles" exception. I already added a custom src/main/resources/sysctl.conf:

fs.file-max = 64000

But UnixOperatingSystemMXBean#getMaxFileDescriptorCount() returns still 4096

I guess I'd also have to set the user limit - is there a way to do it in boxfuse?


Solution

  • Boxfuse Client 1.26.7.1312 and up now automatically adjust the user limits to match the kernel limits. See https://cloudcaptain.sh/docs/releasenotes#1.26.7.1312 and https://cloudcaptain.sh/docs/payloads/springboot#sysctl

    Simply upgrade with boxfuse -u and you should be good to go.