Skip to content

Commit

Permalink
savilerow back to the G1GC garbage collector
Browse files Browse the repository at this point in the history
  • Loading branch information
ozgurakgun committed Mar 9, 2024
1 parent 8f52ebd commit 69bc71f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions etc/savilerow/savilerow
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ case "$@" in
cgcreate -g cpu:/$GROUP_NAME
cgset -r cpu.cfs_quota_us=1000000 $GROUP_NAME
cgset -r cpu.cfs_period_us=1000000 $GROUP_NAME
cgexec -g cpu:$GROUP_NAME java -ea -XX:+UseSerialGC -Djava.security.egd=file:/dev/urandom -Djava.library.path=$DIR/lib/ -Xmx8G -jar "$DIR/savilerow.jar" "$@"
cgexec -g cpu:$GROUP_NAME java -ea -XX:+UseG1GC -XX:ParallelGCThreads=1 -Djava.library.path=$DIR/lib/ -Xmx8G -jar "$DIR/savilerow.jar" "$@"
cgdelete -g cpu:/$GROUP_NAME
fi
;;
*)
java -ea -XX:+UseSerialGC -Djava.security.egd=file:/dev/urandom -Djava.library.path=$DIR/lib/ -Xmx8G -jar "$DIR/savilerow.jar" "$@"
java -ea -XX:+UseG1GC -XX:ParallelGCThreads=1 -Djava.library.path=$DIR/lib/ -Xmx8G -jar "$DIR/savilerow.jar" "$@"
;;
esac

0 comments on commit 69bc71f

Please sign in to comment.