Omaha #3319 switched capture to only dump live objects
work around for java 1.7 G1 garbage collector jmap problem Change-Id: I5dd8db5d2d98baacaa03a3b60d1d9c5cb350fc2d Former-commit-id:312f74a200
[formerly92a510fcb8
] [formerlyfe6b3ff4b3
[formerly 54157c12af81c4e217d3ade436bc0b3723964cac]] Former-commit-id:fe6b3ff4b3
Former-commit-id:6353125f62
This commit is contained in:
parent
76464a3f93
commit
deb7669844
1 changed files with 4 additions and 1 deletions
|
@ -351,7 +351,10 @@ runJmap() {
|
|||
dumpPath="${dumpPath}.hprof"
|
||||
fi
|
||||
|
||||
local cmd="/awips2/java/bin/jmap -dump:format=b,file=${dumpPath}"
|
||||
# Java 1.7 has a bug that causes jmap to crash processes using the G1 garbage collector
|
||||
# more info at http://stackoverflow.com/questions/20571004/garbage-collector-first-and-jmap-eof-bug
|
||||
# workaround is to add the 'live' option to jmap to limit the dump to only live objects
|
||||
local cmd="/awips2/java/bin/jmap -dump:live,format=b,file=${dumpPath}"
|
||||
echo "${t1}: Running command: $cmd $options $pid >> $log 2>&1 &" >> $processFile
|
||||
$cmd $options $pid >> $log 2>&1 &
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue