Wednesday March 14, 2007 Troubleshooting Web Server crashes : enabling core dumps
$ SSL_DUMP=1 $ export SSL_DUMP $ ./start
global core file pattern: global core file content: default init core file pattern: core.%p initcore file content: default global core dumps: disabled per-process core dumps: enabled global setid core dumps: disabled per-process setid core dumps: disabled global core dump logging: disabled
Note that I have set core file pattern to core.%p instead of the usual core . If a process with pid
lets say 1000 dumps core, it will generate a core file with name core.1000 to avoid overriding in case the server dumps
multiple core files. But this is not necessary.
If your Operating System is Linux, make sure that you set ulimit to unlimited before starting the server.
$ulimit -c unlimited or
$ulimit -S -c unlimited or
or edit /etc/security/limits.conf and followed by editing /etc/profile
To get core dumps on Windows, first make drwatson as a default debugger:
C:\WINDOWS\system32>drwtsn32.exe -i
To change various settings of this drwatson,
C:\WINDOWS\system32>drwtsn32.exe
This opens a window where you can specify where to dump the core.
To set back the default debugger to MSVC, change registry key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug to "C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin\msdev.exe" -p %ld -e %ld
Set Auto to 0.
Set UserDebuggerHotKey to 0.
This blog copyright 2009 by meena