UCMDB Tip : Can .hprof files be deleted from Windows directory?
System32 folder in Windows directory may contain files like java_pid3492.hprof and java_pid5548.hprof but only one of the two file's Process ID (pid) number may be seen in Windows Task Manager.
Can the second file be deleted?
java_pid_*****.hprof files are generated by the JDK profiler (built in the Java itself) and specifically by this flag: -XX:+HeapDumpOnOutOfMemoryError.
When a memory error occurs the profiler dumps information into these .hprof files. These files need to be analyzed in order to understand the underlying problem with the system.
There are different programs that can analyze these .hprof files.
Also Java does not create these files unless being told to, so the developers of the system have to know about this.
Those files can be deleted without any impact of the systems (it does not affect the running system at all), but programmers may need to have a copy (for example, in order to observe the memory crash).
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.”
Click the KUDOS star to say 'Thanks'