Skip to content

Commit

Permalink
HeapDumpOnOutOfMemoryError
Browse files Browse the repository at this point in the history
  • Loading branch information
andylytical committed Apr 16, 2024
1 parent 618825c commit cbbfa14
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 4 additions & 1 deletion bin/fix_java_heap_size.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ if [[ ${APP_NAME} == "jira" ]] ; then

elif [[ ${APP_NAME} == "confluence" ]] ; then
sed "${sed_opts[@]}" \
's/\(-Xm[sx]\)[0-9]\+m/\18192m/g' \
-e 's/\(-Xm[sx]\)[0-9]\+m/\18192m/g' \
-e '/-Dexample.property/ a\
CATALINA_OPTS="-XX:+HeapDumpOnOutOfMemoryError ${CATALINA_OPTS}"\
CATALINA_OPTS="-XX:HeapDumpPath=/backups/heap.bin ${CATALINA_OPTS}"' \
"${SETENV}"

fi
Expand Down
5 changes: 1 addition & 4 deletions bin/rcp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,7 @@ copy_files() {
# copy from src to tgt
ls_remote "$SRC_HOST" "$SRC_PATH"
ask_yes_no "Copy files from $SRC_HOST to $TGT_HOST ?" || return 0
# get owner and group information
# local _parts=( $( ssh $TGT_HOST "sudo stat -c '%U %G' $TGT_PATH") )
# local _user="${_parts[0]}"
# local _group="${_parts[1]}"
ssh $TGT_HOST "sudo mkdir -p $TGT_PATH"
ssh $SRC_HOST "sudo tar cf - -C $SRC_PATH ." \
| ssh $TGT_HOST "sudo tar xvf - -C $TGT_PATH"
ssh $TGT_HOST "sudo chown -R --reference=$TGT_PATH $TGT_PATH/"
Expand Down
2 changes: 2 additions & 0 deletions install-upgrade/confluence/clean_xml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ time $JAVA -jar $JAR $XML_OLD >$XML_NEW
time zip -j -u $ZIP $XML_NEW
unzip -l $ZIP
chown confluence:confluence $ZIP

echo "Total elapsed time: $SECONDS seconds"

0 comments on commit cbbfa14

Please sign in to comment.