Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nidhi-ag/1899e21bc8423b202c3e5adc45db5da5 to your computer and use it in GitHub Desktop.
Save nidhi-ag/1899e21bc8423b202c3e5adc45db5da5 to your computer and use it in GitHub Desktop.
These are the 4 changes required to generate core dump
1. Run docker container in privileged mode
2. Add CoreDumpDirectory /tmp in apache2.conf
3. Set core pattern
echo '/tmp/core.%h.%e.%t' > /proc/sys/kernel/core_pattern
4. Set core files to unlimited
ulimit -c unlimited
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment