aboutsummaryrefslogtreecommitdiff
path: root/app/jitsi/build/jitsi-videobridge/jvb_run
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@dufour.io>2021-02-01 07:48:50 +0100
committerQuentin Dufour <quentin@dufour.io>2021-02-01 07:48:50 +0100
commitcb69a1123cc36c792cb0993ae46c3700a7391a62 (patch)
tree02845fb5b4e8216875942dba0e4c949fc87cc5ed /app/jitsi/build/jitsi-videobridge/jvb_run
parentc2960f75b7725e19e5c9366268fd8664ffc5fcac (diff)
downloadinfrastructure-cb69a1123cc36c792cb0993ae46c3700a7391a62.tar.gz
infrastructure-cb69a1123cc36c792cb0993ae46c3700a7391a62.zip
Stabilize build scripts
Diffstat (limited to 'app/jitsi/build/jitsi-videobridge/jvb_run')
-rwxr-xr-xapp/jitsi/build/jitsi-videobridge/jvb_run10
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