Is there a JVM option to print out the total memory allocated during a run without running through an instrumented profiler?
I'm certainly not an expert on how the memory allocator within Java works, but surely keeping track of total bytes allocated should be possible with almost no overhead.
I can't run in profiler since this application needs to handle tens of thousands of messages per second (much more at the peak) for many hours; the overhead of a profiler would make it unfeasible.
Thanks