Search code examples
springspring-bootspring-securityjprofiler

Spring Boot FilterChain increase api response time and is a hot spot


I have a question about the filterchain in spring boot, since it's identified as a hot spot in Jprofiler for increasing the response time. Is this normal or we didn't use the filterchain in a right way? Any optimization we can do to it to reduce the response time?

jprofiler screenshot-1

jprofiler screenshot-2


Solution

  • When you look at the call graph, the node background color indicates which of the displayed methods have the most self-time. This does not mean that they are "hot spots" on a global level.

    Your second screen shot shows the "hot spots" view in JProfiler which is the right place to look for hot spots.