From cb69a1123cc36c792cb0993ae46c3700a7391a62 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Mon, 1 Feb 2021 07:48:50 +0100 Subject: Stabilize build scripts --- app/jitsi/build/jitsi-videobridge/jvb_run | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'app/jitsi/build/jitsi-videobridge/jvb_run') 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 -- cgit v1.2.3