I am running a big Java application on a cluster and I have much memory available. Thus I plan to start my JVM with a huge maximal heap size and see that it works. However I need to run this multiple times and I want to know how big the heap actually became during the run. I know I could do this with a tool like VisualVM but what if I don’t want to run a big ui based application? Is there some paramater I can send to the jvm to get some this sort of memory statistics after my application has terminated? Or perhaps a command line based application that can easily do it?
Share
jstatis what you are after. It will print stats every second (or whatever you specify) then you can analyse the output to find the maximum.