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
​

On Tuesday, March 24, 2020 at 6:10:15 AM UTC-7 John Bond wrote:

>
> Following up on this thread, it seems we have managed to reduce the lag on 
> our infrastructure by adding the following to /et/cas/config/cas.properties
>
>   
> 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.
> <https://groups.google.com/a/apereo.org/forum/#!topic/cas-user/wLuzUAxJGkU>
>
>
> 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 the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cas-user+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/9cf9bb74-1f2b-44bd-9d6d-de9b4c8aac15n%40apereo.org.

Reply via email to