Get total memory allocated by a Java process (without profiler)? -


is there jvm option print out total memory allocated during run without running through instrumented profiler?

i'm not expert on how memory allocator within java works, surely keeping track of total bytes allocated should possible no overhead.

i can't run in profiler since application needs handle tens of thousands of messages per second (much more @ peak) many hours; overhead of profiler make unfeasible.

thanks

afaik, there no such jvm option.

you enable gc logging , try to infer memory allocation statistics space sizes. reports when gc runs ... not @ application start , end.


i wonder why there wouldn't jvm option this.

frankly, because not useful. knowing how memory allocated during run not understand how tune application.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -