-->

DEVOPSZONES

  • Recent blogs

    Elasticseach : hprof files filling up my drive space

    Elasticseach : hprof files filling up my drive space




    [root@efkserver elasticsearch]# pwd
    /var/lib/elasticsearch
    [root@efkserver elasticsearch]# ls
    [root@efkserver elasticsearch]# ls -lahtr
    total 428G
    -rw-------   1 elasticsearch elasticsearch  56G Jul 27  2019 java_pid8221.hprof
    -rw-------   1 elasticsearch elasticsearch  56G Jul 27  2019 java_pid11795.hprof
    -rw-------   1 elasticsearch elasticsearch  56G Jul 28  2019 java_pid3378.hprof
    -rw-------   1 elasticsearch elasticsearch  56G Jul 30 14:58 java_pid21286.hprof
    -rw-------   1 elasticsearch elasticsearch  33G Jul 30 16:37 java_pid6223.hprof
    -rw-------   1 elasticsearch elasticsearch  52G Aug  6 22:18 java_pid26258.hprof
    -rw-------   1 elasticsearch elasticsearch  33G Aug  8 14:22 java_pid4843.hprof
    -rw-------   1 elasticsearch elasticsearch  33G Aug  8 15:15 java_pid11187.hprof
    -rw-------   1 elasticsearch elasticsearch  28G Aug  8 17:46 java_pid1632.hprof
    drwxr-s---.  2 elasticsearch elasticsearch  271 Oct  7 12:23 .
    -rw-------   1 elasticsearch elasticsearch  32G Oct  7 12:27 java_pid18166.hprof
    drwxr-xr-x. 41 root          root          4.0K Dec 17 12:52 ..
    [root@efkserver elasticsearch]#


    Solution:


    HProf is a tool built into JDK for profiling the CPU and heap usage within a JVM. A Java process crash may produce an hprof file containing a heap dump of the process at the time of the failure. Hence these files can be safely removed.


    Delete all the hprof file:



    [root@efkserver elasticsearch]# rm -f *
    [root@efkserver elasticsearch]#

    No comments