Skip to content

Commit 011d8bf

Browse files
committed
OWLS-94991 - Increase default sleep interval and provide option to override the value in startServer.sh to avoid high cpu usage.
1 parent 30212cc commit 011d8bf

File tree

1 file changed

+3
-1
lines changed
  • operator/src/main/resources/scripts

1 file changed

+3
-1
lines changed

operator/src/main/resources/scripts/utils.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,9 @@ function waitForShutdownMarker() {
548548
if [ -e ${SHUTDOWN_MARKER_FILE} ] ; then
549549
exit 0
550550
fi
551-
sleep 0.1
551+
# Set the SERVER_SLEEP_INTERVAL_SECONDS environment variable in the domain specs to
552+
# override the default sleep interval value of 1 second.
553+
sleep ${SERVER_SLEEP_INTERVAL_SECONDS:-1}
552554
done
553555
}
554556

0 commit comments

Comments
 (0)