How to measure peak heap memory usage in Java? -


how measure peak heap memory usage in java? memorypoolmxbean keeps track of peak usage per memory pool, not entire heap. , peak heap usage not sum of different heap memory pools.

did think using totalmemory() function runtime class - docs? there free tools visualvm or jstat, example:

jstat -gc <pid> <time> <amount> 

hope helps.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -