How to clear the hs_err_pid log file in the home directory

I have many log files in my home directory:

hs_err_pid2326.log hs_err_pid2416.log 

I believe this is a java error log file, how to delete it and stop creating it?

Java version:

 [ kelvin@localhost ~]$ java -version java version "1.6.0_21" Java(TM) SE Runtime Environment (build 1.6.0_21-b06) Java HotSpot(TM) Server VM (build 17.0-b16, mixed mode 
+6
source share
2 answers

They are created in the event of a JVM failure; they are similar to the core file, but contain a lot of Java-specific information. These are just text files, and you can delete them, like any other files:

 $ rm ~/hs_err_pid*.log 

You can stop creating them without crashing the JVM. Usually such accidents are rare. See the files themselves in a text editor, and they will contain some information about their origin.

+10
source

These are the Java dump files (core). Determine which Java process creates them by monitoring and controlling the PID.

+4
source

Source: https://habr.com/ru/post/896884/


All Articles