We have been struggling to diagnose the cause of an OutOfMemoryError we experienced on one of our production servers. Our attempts to reproduce the issue in soak tests have so far failed, and we are considering enabling -XX:+HeapDumpOnOutOfMemoryError on our production servers, so that if it does happen again, at least we'll have some data.
Is it wise to enable this setting on production servers?
(This question is related to but different from Would you install phpmyadmin on a production web server?)
I want to use PhpMyAdmin to access my production database. I'd rather not have it installed on the production server. Would it be reasonable/safe to run it on a different server, but have it access my production database over the Internet?