How to disable the Java Attach API

Solution Unverified - Updated -


  • JVM tools like jcmd, jmap, and jstack use the Attach API and create a socket file at /tmp/.java_pid$PID. It is desired to prevent files from being created in /tmp/ for security reasons.


  • Red Hat build of OpenJDK

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