Reputation: 1454
I am new with Spring boot (v1.4.1.RELEASE) but i noticed that the request/response in the embedded tomcat is very slow.. it takes 3-4 seconds to load 800k (jsp page) with very little sql requests. How can I optimize the request?
Upvotes: 0
Views: 4583
Reputation: 15214
There are many possible answers of course, but I know about one Spring Boot issue that is directly related to JSP and the performance: https://github.com/spring-projects/spring-boot/issues/2825 (and the similar: https://github.com/spring-projects/spring-boot/issues/7039)
In other words, try to set this parameter in application.yaml
:
server.jsp-servlet.init-parameters.development: false
Upvotes: 1