Skip to content

Commit

Permalink
Finetune UniFi (#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Oct 15, 2023
1 parent 27e9f73 commit 758b5f4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions unifi/rootfs/etc/s6-overlay/s6-rc.d/unifi/run
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ fi

options+=("-Xmx${xmx}m")
options+=("-Xms${xms}m")
options+=(-Dapple.awt.UIElement=true)
options+=(-Dfile.encoding=UTF-8)
options+=(-Djava.awt.headless=true)
options+=(-XX:+CrashOnOutOfMemoryError)
options+=(-XX:+ExitOnOutOfMemoryError)
options+=(-XX:+UseParallelGC)
options+=(--add-opens=java.base/java.io=ALL-UNNAMED)
options+=(--add-opens=java.base/java.lang=ALL-UNNAMED)
options+=(--add-opens=java.base/java.time=ALL-UNNAMED)
options+=(--add-opens=java.base/sun.security.util=ALL-UNNAMED)
options+=(--add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED)
options+=(-jar /usr/lib/unifi/lib/ace.jar)
options+=(start)

Expand Down

0 comments on commit 758b5f4

Please sign in to comment.