Hi all,
I'm testing CAS 6.1.2 in an external Jetty (9.4.24) container, and I've been running into an issue where CAS logs an error message like the following:
User limit of inotify instances reached or too many open files
Prior to a huge stack trace and the application shutting down.
I originally saw this issue when running the embedded Jetty container, then switched over to an external container to see if that would make any difference (it did not). I
am running Jetty in a Docker container, and have increased the following sysctl parameters on the Docker host:
# sysctl -p
fs.inotify.max_user_watches = 560144
fs.inotify.max_user_instances = 512
I also have increased nofiles
substantially, but that doesn't seem to have helped either.
Any ideas on where to begin looking to resolve this issue? I see CAS constantly logging messages like this: 2019-12-21 03:41:46,082 INFO [org.apereo.cas.util.io.PathWatcherService] - <Watching
directory at [/etc/cas/config]>, which I assume to be related to the inotify issues.
Thanks!
--Gary