Swordfish
Swordfish

Reputation: 1281

Monitoring tomcat threads and threadpool executors using Spring Boot Actuator

We are doing some performance testing of our application which uses SpringBoot 2.2.2 with Spring Actuator.

We want to monitor:

  1. How many tomcat threads are being used
  2. How many tomcat requests are being queued
  3. How many ThreadPoolTaskExecutor threads are being used (we are using @Async with a threadpool for some of the tasks)

Is this information available in the actuator? I couldn't see which metrics I needed to use.

Upvotes: 2

Views: 3595

Answers (1)

Per Huss
Per Huss

Reputation: 5105

By enabling Tomcats MBean Registry you will get more metrics collected, including thread pool metrics: server.tomcat.mbeanregistry.enabled=true

Upvotes: 4

Related Questions