webapp rec – How to monitor web app performance

I have a Spring-boot app. It seems to make the server crash. Even though I am sure of not having introduced any basic memory leak I would leak to profile my app for performance.

I am looking for profiler like JProfiler that can be embedded into the app since the app runs in a container.