CAS 7.1.x and threads are ever-increasing

114 views
Skip to first unread message

Michael Gettes

unread,
Dec 13, 2024, 9:55:26 PM12/13/24
to cas-...@apereo.org
I am running 7.1.x inside a docker container and I observe that the thread count (ls /proc/PID/task/) and the open file descriptors (lsof output) are ever-increasing. lsof shows the same pid with different thread IDs and the same IDs allocated over and over which seems to align with the ever-increasing number of threads.

Eventually, the open files are exhausted and I have to kill the process.

I have tried spring.threads.virtual.enabled=false with no impact.

Any advice is appreciated.

/mrg

Lars Grefer

unread,
Mar 31, 2025, 8:09:46 AM3/31/25
to CAS Community, Michael Gettes
We have noticed the same with CAS 7.1

We are using delegated authentication with different external SAML IDPs.

It seems like every login causes new org.opensaml.saml.metadata.resolver.impl.FilesystemMetadataResolver instances to be created which in turn create a new timer thread.
Reply all
Reply to author
Forward
0 new messages