Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does -XX:+HeapDumpOnOutOfMemoryError create any security or performance issues?

Does the instruction to create an Heap Dump on out of memory error (-XX:+HeapDumpOnOutOfMemoryError) result in any security or noteworthy performance issues for Tomcat 7 in a production environment?

(Of curse the server has to write the file when it "crashes" and this take some amout of time/space - but I am more interested in performance issues while the server is still in business.)

like image 342
Ralph Avatar asked Nov 15 '25 05:11

Ralph


1 Answers

-XX:+HeapDumpOnOutOfMemoryError flag does not introduce performance or security problems in run time. The flag is checked only after OOME has happened.

However the heap dump itself may contain sensitive data. Make sure it is written to a secure place by providing appropriate -XX:HeapDumpPath= option.

like image 116
apangin Avatar answered Nov 17 '25 17:11

apangin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!