Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-91460

Creation of mini dump (mdmp) file within install directory of Windows OS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: High High
    • 8.5.11, 9.0.1
    • 8.5.0, 8.4.2, 8.5.1, 8.5.3
    • Other

      Problem

      In Windows server OS, when we shut down  Confluence service from Windows services does not shut down properly and create mini  dump mdmp files under the installation folder of Confluence

      Environment

      • Confluence Version 8.4 Onwards

      Steps to Reproduce

      • Install Confluence in Windows OS 
      • Make sure to have Confluence run as a Windows service.
      • Go to services.msc and stop the Confluence service.
      • Could see the below logs in atlassian-confluence.log
        • 2023-09-07 20:13:58,662 WARN [Catalina-utility-3] [confluence.impl.webapp.ContextShutdownThreadListener] logAndInterrupt Non-daemon thread [Thread-32] is still alive, and may be blocking clean shutdown - interrupting

      Expected Results

      • Confluence should shut down(from Windows services) cleanly without generating mini dump files (~5GB) under the installation directory of Confluence in Windows OS.

      Actual Results

      The below files are generated under the installation folder

      • hs_err_pid1244.mdmp (file size in giga bytes)
      • hs_err_pid1244.txt
      • hs_err_pid1244.jfr 

      Workaround 1 (recommended)

       

      • mini dump not created after the above setting

      Workaround 2

      • I have found another workaround from my testing lab, Please disable JFR under Troubleshooting- support tools in UI and stop the Confluence. It should not produce any dumps once this setting is off.

      As we have two workarounds, recommend -XX:-CreateMinidumpOnCrash and leave JFR enabled as JFR data is good to collect.

      Notes:

      Linux OS looks good, no dumps were created during shutdown.

      Mini dump files are generated by Windows OS when the program crashes or some error occurs
      The mini-dump is small and is a snapshot of a program's state at the time of the crash. It contains information about call stack, registers, and a portion of memory 

      These files are used for diagnosing application systems crashes but do not provide more info about application memory

       core dump files --Linux equivalent generated when a program crashes.

              5339cdd01cf4 Jeffery Xie
              dcb47c3ce7f7 Srinivas Sakali (Inactive)
              Votes:
              18 Vote for this issue
              Watchers:
              49 Start watching this issue

                Created:
                Updated:
                Resolved: