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
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)
- Use java option -XX:-CreateMinidumpOnCrash to disable these mini dumps whenever there is a shutdown of Confluence.!https://cdn.sstatic.net/Sites/stackoverflow/Img/favicon.ico?v=ec617d715196!How to disable minidump (mdmp) files generation with Java Hotspot JVM on Windows
- 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.
- resolves
-
CONFSERVER-94763 Confluence service from Windows services does not shut down properly
-
- Closed
-
-
CONFSERVER-95941 Error 1053 when stopping Conlfuence running as Windows Service
-
- Closed
-