Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8204681

Option to include timestamp in hprof filename

XMLWordPrintable

      In case of OOM, user can pass the options
      -XX:HeapDumpOnOutOfMemoryError
      -XX:HeapDumpPath

      https://docs.oracle.com/javase/8/docs/technotes/guides/troubleshoot/clopts001.html

      However, the HeapDumpPath provides an option to only provide directory path.
      This generates the file with format java_pid$pid.hprof

      It may be better to provide an option of supplying formatted file name from
      command line which includes option of providing date/timestamp in file name,
      e.g., -XXHeapDumpFileName=java_pid_yyMMddHHmmss.hprof, which should generate
      a file name like java_2433_180608140139.hprof.

            szaldana Sonia Zaldana Calles
            shadowbug Shadow Bug
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: