Tools
How To Enable Crash Dumps In Windows and Linux for Serv-U
How to enable crash dump in both Windows and Linux.
First published date
Last published date
Overview
Product section
Cause
Resolution
Enabling crash-dumps in Windows:
1. Run the regedit.msc.
2. Create a backup of WER keys.
- Computer HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps
- Right-click on ComputerHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps choose "Export"
- Select the destination of the backup file
- Press OK
3. Create new keys, right-click the LocalDumps > New > Key > Type Serv-U.exe.
4. Add the new values:
Right-click Serv-U.exe and create the following.
Name: DumpFolder
Type: REG_EXPAND_SZ
Data: full-path-to-dump-folder(e.g D:\CrashDumps)
Name: DumpCount
Type: REG_DWORD
Data: 10
Name: DumpType
Type: REG_DWORD
Data: 1
5. Reboot the server.
A new key will be added to the registry; it is needed to reproduce the crash.
- The output file will be saved to the path specified in <full-path-to-dump-folder> above. Be sure to create this folder before attempting to reproduce the issue
- When the issue is reproduced, a file with the application name and the .dmp extension has to be generated by windows.
- If there's no .dmp file in the folder - please carefully revise LocalDumps key values in the registry and repeat the process to reproduce the issue.
More info:
https://msdn.microsoft.com/ru-ru/library/windows/desktop/bb787181(v=vs.85).aspx
http://www.thewindowsclub.com/activate-windows-error-reporting-windows-8
Enabling crash-dumps in Linux:
1) edit sysctl.conf
# vi /etc/sysctl.conf
kernel.core_uses_pid = 1
kernel.core_pattern = /home/adminuser/Desktop/dump/core-%e-%s-%u-%g-%p-%t
fs.suid_dumpable = 2
Where /home/adminuser/Desktop/dump = folder for storing the dumps. Must be available for user
2) Reload settings with:
# sysctl -p
3) Set limits for core files dumps
ulimit -c unlimited
4) Edit /etc/systemd/system.conf (sudo required)
Uncomment and set
DefaultLimitCORE=infinity
5) Reboot the server
More info:
https://www.cyberciti.biz/tips/linux-core-dumps.html