I have a Spring Boot app where I have specified Tomcat properties like max-thread as 4 and max-connections as 2. So, if I hit the application with 8 requests (each endpoint gives response after a delay of 5 seconds, so the threads will remain busy) - then, 4 working threads will be occupied, 2 requests will be in queue, the rest will be rejected.
However, how do I see or count how many requests are currently in the queue?