2015-03-21 12:37 GMT+02:00 Антон Мацюк <[email protected]>:
> 2015-03-21 2:06 GMT+02:00 Eric Robinson <[email protected]>:
>>> Set this options to JVM, and it will make heapdumps automatically.
>> Will these heap dumps be the same size as the current tomcat memory 
>> utilization?
> Yeap, and OOM will guarantee that there is no garbage already in memory.
> But there is one trick: for example, original file with heapdump have
> 2031 MB in it, but .tar.gz "weights" only 202 MB. So just compress
> heapdump, and it will be much smaller.
One correction, option -XX:-HeapDumpOnOutOfMemoryError disables
heapdumps on OOM, you should use -XX:+HeapDumpOnOutOfMemoryError -
with plus sign, to enable it.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to