I want to measure the percentage of memory used by HttpSession in a web application. Is there any way to measure memory consumption with all HttpSessions in a running Tomcat instance at an arbitrary point in time without modifying the application? What I have tried In Tomcat, the concrete class of HttpSession is org.apache.catalina.session.StandardSession. I have profiled the application with
Tag: profiler
Checking Run time in IntelliJ IDEA Ultimate
Can I use InteliJ Ultimate’s profiler to see how long it takes for a method to be executed? Answer Two particularly helpful tools for examining the program at runtime are the debugger and profilers. The debugger is very precise and gives you full and granular control over the execution of the program, which allows you to reproduce intricate failure conditions.
JVM Getting the largest objects in the heap programmatically
How programmatically (from within the java application/agent) do I get a “live” summary of the largest objects in the heap (including their instances count and size)? Similarly to what Profilers do. For example, here is a screenshot from JProfiler: Usually I used to work with heap dumps in the cases where I really needed that, but now I would like
Monitor performance of REST API endpoints using the SPF4J Java Profiler
I have a number of REST API endpoints and I would like to measure the timing metrics for each separately. Annotating the methods with @PerformanceMonitor works, but the recorderSource field takes a class and there’s no way to pass a unique forWhat descriptor for each method. Do I need to create a child class for every endpoint + HTTP method