diff options
author | Quentin Dufour <quentin@dufour.io> | 2021-02-01 07:48:50 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@dufour.io> | 2021-02-01 07:48:50 +0100 |
commit | cb69a1123cc36c792cb0993ae46c3700a7391a62 (patch) | |
tree | 02845fb5b4e8216875942dba0e4c949fc87cc5ed /app/jitsi/build/jitsi-videobridge/jvb_run | |
parent | c2960f75b7725e19e5c9366268fd8664ffc5fcac (diff) | |
download | infrastructure-cb69a1123cc36c792cb0993ae46c3700a7391a62.tar.gz infrastructure-cb69a1123cc36c792cb0993ae46c3700a7391a62.zip |
Stabilize build scripts
Diffstat (limited to 'app/jitsi/build/jitsi-videobridge/jvb_run')
-rwxr-xr-x | app/jitsi/build/jitsi-videobridge/jvb_run | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/app/jitsi/build/jitsi-videobridge/jvb_run b/app/jitsi/build/jitsi-videobridge/jvb_run index 3a78c46..c82712c 100755 --- a/app/jitsi/build/jitsi-videobridge/jvb_run +++ b/app/jitsi/build/jitsi-videobridge/jvb_run @@ -9,10 +9,15 @@ if [ -z "${JITSI_NAT_PUBLIC_IP}" ]; then JITSI_NAT_PUBLIC_IP=$(curl https://ifconfig.me) fi +if [ -z "${JVB_MEMORY}" ]; then + echo "You must set the env variable 'JVB_MEMORY'. eg: JVB_MEMORY=3072m" + exit 1 +fi + echo "NAT config: ${JITSI_NAT_LOCAL_IP} -> ${JITSI_NAT_PUBLIC_IP}" exec java \ - -Xmx3072m \ + -Xmx${JVB_MEMORY} \ -XX:+UseConcMarkSweepGC \ -XX:+HeapDumpOnOutOfMemoryError \ -XX:HeapDumpPath=/tmp \ @@ -22,5 +27,4 @@ exec java \ -Dorg.ice4j.ice.harvest.NAT_HARVESTER_LOCAL_ADDRESS=${JITSI_NAT_LOCAL_IP} \ -Dorg.ice4j.ice.harvest.NAT_HARVESTER_PUBLIC_ADDRESS=${JITSI_NAT_PUBLIC_IP} \ -cp '/usr/share/jvb/jitsi-videobridge.jar:/usr/share/jvb/lib/*' \ - org.jitsi.videobridge.MainKt \ - --apis=rest,xmpp + org.jitsi.videobridge.MainKt |