kubernetesthread-dumpdistroless

how to take thread dump of java application on a distroless container running on kubernetes?


My cluster have many java applications running on it, I would like to take thread dump for few microservices. But as these are distroless images, I was thinking of ephemeral containers but not sure if volume can be attached to such containers. Can someone help?

Regards, Anjani


Solution

  • Are you using Spring Boot to build those microservices? If yes, then by using Spring Boot Admin you can get thread dumps, heap dumps and monitor your services from a single window.

    Please check here to get more details about it.