I met a strange problem and couldn't find the problem, as shown in the title. It's just a simple getheader from HttpServletRequest, but it occasionally takes a long time. somebody can help me?

The log is as follows: SpringBoot Spring Boot 2.3.4.RELEASE HttpServletRequest getHeader  It takes a long time

The code is as follows: SpringBoot Spring Boot 2.3.4.RELEASE HttpServletRequest getHeader  It takes a long time

I have done some related tests and determined that HttpServletRequest getheader blocking leads to too long time, but I can't find a solution.

Comment From: Rock3306

The JDK version we use is 1.8

We have also tried some solutions of securerandom, but none of them can solve the problems we encounter

Comment From: wilkinsona

Spring Boot doesn't implement the Servlet API. It's the servlet container (embedded or standalone) that you're using that does so. You'd be best asking this question of the container's community using Stack Overflow, the container's user mailing, similar.

Also, please note that Spring Boot 2.3.x has reached the end of its OSS support period. You should upgrade to Spring Boot 2.5.x at your earliest convenience.