How to define a log rotation for Heap Dump files using EAP?

Solution Unverified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content