--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to a topic in the Google Groups "CAS Community" group.
To unsubscribe from this topic, visit https://groups.google.com/a/apereo.org/d/topic/cas-user/iMwglmoMBPc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/226b9165-d3ea-4f2f-8dd0-ddabe860968c%40apereo.org.
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.web.embedded.EmbeddedWebServerFactoryCustomizerAutoConfiguration
I'm unsrue why this fixed the issue however i came across the
suggestion while attempting to configure a standalone war to work with an external tomcat instance and hitting an error regarding a missing method.
Adding the above config fixed the issue with the with the external instance of tomcat however it also significantly reduced the lag we observed when using the embeded war. If anyone is able to provide insight into why this config parameter helped i would be intrested
Thanks
--
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to a topic in the Google Groups "CAS Community" group.
To unsubscribe from this topic, visit https://groups.google.com/a/apereo.org/d/topic/cas-user/iMwglmoMBPc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/6a633dbb-79be-4ffb-b32f-c671a4f60bd4%40apereo.org.
Thank you for sharing your insights!
Though it’s been nearly 4 years since your original post, we wanted to provide an update on our progress.
We’re currently in the process of migrating from CAS 5.3 to CAS 7. During testing, we noticed an issue where CAS 7 took over 6 seconds to generate the SAMLResponse XML, with CPU usage exceeding 120% on an AWS EC2 instance with 1 vCPU.
We experimented with the spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.web.embedded.EmbeddedWebServerFactoryCustomizerAutoConfiguration.
Surprisingly, this resulted in a significant improvement, reducing response time to just 150ms and lowering CPU usage to 11%.
It’s worth noting that CAS 7 utilizes Spring Boot 3.2, there may still be performance-related challenges with the embedded Tomcat auto configuration at this time.
While we would have liked to create a minimal sample to submit to Spring Boot, our current focus is on completing the upgrade within our timeline constraints.
Best,
Ocean
Hi John,
We want to let you know we removed that configuration (which excludes the EmbeddedWebServerFactoryCustomizerAutoConfiguration) in our environment.
We added server.tomcat.background-processor-delay=0s configuration, and it fixed the performance issue.
This option is safer and has less impact.From a Unicon support:
If you are deploying with an embedded tomcat container, excluding that component is likely catastrophic to your deployment and a major red flag.
Without knowing what that exclusion does, this should and could very severely jeopardize the stability of your deployment.
I would suggest that you remove the exclusion and instead set this: server.tomcat.background-processor-delay=0s
You can follow the conversation here: https://github.com/apereo/cas/pull/5652Cheers,