How do I capture hs_err_pid.log in container environments?

Solution Verified - Updated -

Issue

  • How do I save hs_err_pid.log in container environments?
  • The local file system is ephemeral in container environments. Do I have to attach a Persistent Volume to java container to save hs_err_pid.log?

Environment

  • Red Hat Openshift Container Platform
  • Red Hat build of OpenJDK
    • 8u312+
    • 11.0.7+
    • 17

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