🎁 New User? Get 20% off your first purchase with code NEWUSER20 Register Now →
Menu

Categories

Linux Core Dump Management: Detection, Analysis, and Disk Space Recovery

Linux Core Dump Management: Detection, Analysis, and Disk Space Recovery

What Are Core Dumps?

Core dumps are memory snapshots created when a process crashes. They are invaluable for debugging but can fill disks and expose sensitive data if not managed properly.

Core Pattern Configuration

cat /proc/sys/kernel/core_pattern
# Disable: echo "" > /proc/sys/kernel/core_pattern
# systemd: echo "|/usr/lib/systemd/systemd-coredump" > /proc/sys/kernel/core_pattern

Using coredumpctl

coredumpctl list
coredumpctl info
coredumpctl dump PID > /tmp/core.dump
coredumpctl gdb  # debug latest crash

Finding Core Dumps

find / -name "core" -o -name "core.*" 2>/dev/null
du -sh /var/lib/systemd/coredump/
ls -la /var/crash/

Resource Limits

ulimit -c  # current core size limit
ulimit -c 0  # disable core dumps
ulimit -c unlimited  # enable unlimited

Automated Check with dargslan-coredump-check

pip install dargslan-coredump-check
dargslan-coredump-check
Share this article:
Dargslan Editorial Team (Dargslan)
About the Author

Dargslan Editorial Team (Dargslan)

Collective of Software Developers, System Administrators, DevOps Engineers, and IT Authors

Dargslan is an independent technology publishing collective formed by experienced software developers, system administrators, and IT specialists.

The Dargslan editorial team works collaboratively to create practical, hands-on technology books focused on real-world use cases. Each publication is developed, reviewed, and...

Programming Languages Linux Administration Web Development Cybersecurity Networking

Stay Updated

Subscribe to our newsletter for the latest tutorials, tips, and exclusive offers.