-
Notifications
You must be signed in to change notification settings - Fork 41.6k
Description
In apache tomcat uses apache portable runtime(APR) to provide better performance and scalability with native execution. APR uses system resources and execute natively. If we compare the execution performance BIO , NIO and APR connectors APR provides superior performance.
I have experience the same in my development phase. I created two sets of artifacts which is standalone Jar with spring boot embedded tomcat and spring boot war file and deployed on "tomcat" both are same code base but APR configuration is only difference.
Spring boot by default all the threads execution based on “NIO”, so I have compiled APR libraries based on below link:-
https://tomcat.apache.org/tomcat-8.0-doc/apr.html
Executed Spring Boot Jar file with APR. Now I can see performance results are exactly same.
In our spring boot documentation does not have APR guide to add in embedded tomcat. If we add it will help other developers as well.