I found the cause of this problem.
APR (Apache Portable Runtime) plays an important role in running tomcat threads.
By default, the built-in tomcat runs NIO. NIO and BIO were made based on Java, where APR is still the usual execution. When we compare the performance of NIO and APR; APR is much faster.
Virtually all of the basic Tomcat Linux packages come with APR libraries under the tomcat lib folder.
After I turned on APR in the built-in tomcat (i.e. Spring Boot), the performance was the same as that of the stand-alone tomcat.
http://tomcat.apache.org/tomcat-7.0-doc/apr.html
source
share