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
Tag: profiling
Java Flight Recorder – find file descriptor leak
M Java application probably has a file descriptor leak, since I’m getting a Too many open files exception. I’m running my application with JFR, and when I inspect File I/O I barely see any I/O count. …
Profiling Java code changes execution times
I’m trying to optimize my code, but it’s giving me problems. I’ve got this list of objects: List
Memory size in profiling when i try to detect memory leak
I run java program with -Xms512m -Xmx1G -Xss1G. I make profiling to verify the memory, so i Track every 10 object allocations. i observe this figure : My question is, why it display me that 117mo represent 40% while i give 1G to memory ? Answer The graph is a percentage of all allocations, not the heap size. Add all
VisualVM launcher error
I’m trying to use the Eclipse VisualVM launcher. It seems pretty nice, except that it seems to spawn an instance if VisualVM too late to do any profiling of my application. My application finishes execution before the profiler is even initialized; once it starts up, an error window pops up, saying: cannot open requested application. It then shows VM running