Skip to content

Commit a3b9e5d

Browse files
committed
Only dump heap (thanks @Learath2)
1 parent f4c2dca commit a3b9e5d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/_dump_memory.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ rm -rf "$dump_dir"
1818
mkdir -p "$dump_dir"
1919

2020
# https://serverfault.com/a/408929
21-
grep rw-p "/proc/${server_pid}/maps" \
21+
grep "rw-p.*heap" "/proc/${server_pid}/maps" \
2222
| sed -n 's/^\([0-9a-f]*\)-\([0-9a-f]*\) .*$/\1 \2/p' \
2323
| while read -r start stop; do \
2424
gdb --batch --pid "${server_pid}" -ex \

0 commit comments

Comments
 (0)