How to disable the Java Attach API
Issue
- JVM tools like
jcmd
,jmap
, andjstack
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.
Environment
- Red Hat build of OpenJDK
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.