I believe this is caused by a change in Java behavior not in CAS. Adding
this setting to java_opts may help:
-Dorg.apereo.cas.util.io.PathWatcherService=false

On Wed, Jan 8, 2025, 5:54 PM Ray Bon <[email protected]> wrote:

> AJ,
>
> There is sometimes a note about increasing inotify with groovy scripts:
>
> 'In the event the configured resource is a Groovy script, specially if the
> script set to reload on changes, you may need to adjust the total number of
> inotify instances. On Linux, you may need to add the following line to
> /etc/sysctl.conf: fs.inotify.max_user_instances = 256'
>
> My 7.1 is only in dev at the moment, so I have not experienced this.
>
> Ray
>
> On Wed, 2025-01-08 at 11:17 +0000, AJ wrote:
>
> Yes we have one script for one service that we use.  It does not happen in
> 7.0.x though.
>
> On Jan 8, 2025, at 2:17 AM, Andrew Tillinghast <[email protected]>
> wrote:
>
> 
> Do you have custom groovy scripts?  I've seen this issue when it's
> scanning the scripts for changes.
>
> On Tue, Jan 7, 2025, 11:02 PM AJ <[email protected]> wrote:
>
> When upgrading from 7.0.x to 7.1.x, we are seeing inotify usage increasing
> drastically.  This does not happen in 7.0.x (7.0.10).
> Running the below hovers around 25 for 7.0.x, but will keep increasing for
> 7.1.x (tried all version from 7.1.0 - 7.1.3).
>
> find /proc/*/fd -lname anon_inode:inotify 2>/dev/null | cut -d/ -f3 |
> xargs -I '{}' bash -c 'echo -n "{} "; ps -p {} -o comm= 2>/dev/null' | wc -l
>
> I did not change any configuration between the versions.  We are using one
> groovy script in one of the services, it is a file based script, not inline.
>
> Anyone see anything like this?  It seems to only happen under load, I
> can't reproduce it in my dev environment.
>
> Thanks.
> AJ
>
> --
> - Website: https://apereo.github.io/cas
> - List Guidelines: https://goo.gl/1VRrw7
> - Contributions: https://goo.gl/mh7qDG
> ---
> You received this message because you are subscribed to the Google Groups
> "CAS Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email [email protected].
> To view this discussion visit
> https://groups.google.com/a/apereo.org/d/msgid/cas-user/MN6PR18MB546686ED4E427822773D3BDDDB112%40MN6PR18MB5466.namprd18.prod.outlook.com
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/MN6PR18MB546686ED4E427822773D3BDDDB112%40MN6PR18MB5466.namprd18.prod.outlook.com?utm_medium=email&utm_source=footer>
> .
>
> --
> - Website: https://apereo.github.io/cas
> - List Guidelines: https://goo.gl/1VRrw7
> - Contributions: https://goo.gl/mh7qDG
> ---
> You received this message because you are subscribed to the Google Groups
> "CAS Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email [email protected].
> To view this discussion visit
> https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAPt3vHVceMffKfQq81KX04cAtJmphsKr84E1QieYnPKko_u2sw%40mail.gmail.com
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAPt3vHVceMffKfQq81KX04cAtJmphsKr84E1QieYnPKko_u2sw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
>
> --
> - Website: https://apereo.github.io/cas
> - List Guidelines: https://goo.gl/1VRrw7
> - Contributions: https://goo.gl/mh7qDG
> ---
> You received this message because you are subscribed to the Google Groups
> "CAS Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion visit
> https://groups.google.com/a/apereo.org/d/msgid/cas-user/38af7aa316ffe6ecfa569c813330e34bceeb1181.camel%40uvic.ca
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/38af7aa316ffe6ecfa569c813330e34bceeb1181.camel%40uvic.ca?utm_medium=email&utm_source=footer>
> .
>

-- 
- Website: https://apereo.github.io/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAPt3vHW7gZatej0os%2ByHuSgx6qJ2n-wEwh5kVNbG8izdyoSnbQ%40mail.gmail.com.

Reply via email to