How to define a log rotation for Heap Dump files using EAP?
Issue
- We have enabled the JVM option "-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=%JBOSS_HOME%\standalone\log" generates a heap dump when an OOME occurs as suggested in the article: https://access.redhat.com/solutions/37055. When OOME occurred JVM generates java_pid27540.hprof and java_pid51016.hprof under log directory. Is there a way how can we rotate the logs?
Environment
- Red Hat JBoss Enterprise Application Platform (JBoss EAP) 7.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.