Created
February 16, 2017 08:28
-
-
Save lapo-luchini/16b8aa9de6ecda1f094f45949708f808 to your computer and use it in GitHub Desktop.
awk script to extract Java dumps from a log file (`killall -3 jsvc`)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BEGIN { dump = 0; } | |
/^Full thread dump/ { dump = "dump " prev ".txt"; } | |
dump != 0 { print $0 > dump; } | |
/^ PSPermGen/ { getline; print $0 > dump; dump = 0; } | |
{ prev = $0; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment