Java creates hsperfdata
directory usually in the /tmp
directory. What purpose does this directory serve? What is the effect on the JVM if this directory is accidentally deleted?
The /tmp/hsperfdata_<user> directory is created by a Java VM to store performance statistics data shared by other Java programs like jps, jstack, jcmd.
What's hsperfdata file? It is a log directory created by JVM while running your code. By default it is created inside the tmp folder of the operating system that you are using! This directory is a part of Java Performance counter. And the file in this directory is named by the pid number of java process.
That directory is part of a Java performance counter. There's a JVM argument for turning it off: see this related question on StackOverflow.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With