From 758b5f4a3ae1a7ad6d7701c5e291fd9ac545da26 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sun, 15 Oct 2023 16:52:17 +0200 Subject: [PATCH] Finetune UniFi (#456) --- unifi/rootfs/etc/s6-overlay/s6-rc.d/unifi/run | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/unifi/rootfs/etc/s6-overlay/s6-rc.d/unifi/run b/unifi/rootfs/etc/s6-overlay/s6-rc.d/unifi/run index 990e907..c7aaf1b 100755 --- a/unifi/rootfs/etc/s6-overlay/s6-rc.d/unifi/run +++ b/unifi/rootfs/etc/s6-overlay/s6-rc.d/unifi/run @@ -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)