Skip to content

Commit

Permalink
[INLONG-10889][Agent] When the oom is detected, the process exits
Browse files Browse the repository at this point in the history
  • Loading branch information
justinwwhuang committed Aug 26, 2024
1 parent 8c3ffc2 commit 5e07fde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inlong-agent/bin/agent-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ if [ -z "$AGENT_JVM_HEAP_OPTS" ]; then
else
HEAP_OPTS="$AGENT_JVM_HEAP_OPTS"
fi
GC_OPTS="-XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:InitiatingHeapOccupancyPercent=60 -Djava.net.preferIPv4Stack=true -Dfile.encoding=UTF-8"
GC_OPTS="-XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:InitiatingHeapOccupancyPercent=60 -Djava.net.preferIPv4Stack=true -Dfile.encoding=UTF-8 -XX:+ExitOnOutOfMemoryError"
LOG_OPTS="-Xloggc:$BASE_DIR/logs/gc.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=20M"
if [ -n "$NEED_TRACK_NATIVE_MEMORY" ] && [ "$NEED_TRACK_NATIVE_MEMORY" = "true" ]; then
GC_OPTS="$GC_OPTS -XX:NativeMemoryTracking"
Expand Down

0 comments on commit 5e07fde

Please sign in to comment.