blob: 86840f1bcb27d0947e7cbaadbfcc516cb60db01c [file] [log] [blame]
tom4d0c6632014-09-15 23:27:01 -07001#!/bin/bash
Pavlin Radoslavov91413792014-10-15 11:00:32 -07002# -----------------------------------------------------------------------------
tom4d0c6632014-09-15 23:27:01 -07003# Starts ONOS Apache Karaf container
Pavlin Radoslavov91413792014-10-15 11:00:32 -07004# -----------------------------------------------------------------------------
tom4d0c6632014-09-15 23:27:01 -07005
Yuta HIGUCHIf2548cb2014-11-03 18:02:25 -08006#export JAVA_HOME=${JAVA_HOME:-/usr/lib/jvm/java-7-openjdk-amd64/}
Thomas Vachuskaa132e3a2015-02-21 01:53:14 -08007export JAVA_OPTS="${JAVA_OPTS:--Xms512m -Xmx2G}"
8# export JAVA_OPTS="${JAVA_OPTS:--Xms2G -Xmx8G}" # -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:+PrintGCDetails -XX:+PrintGCTimeStamps}"
tom5c255702014-09-18 06:57:39 -07009
Thomas Vachuska045c01d2014-12-04 00:18:06 -080010ONOS_HOME=/opt/onos
11
12[ -d $ONOS_HOME ] && cd $ONOS_HOME || ONOS_HOME=$(dirname $0)/..
13${ONOS_HOME}/apache-karaf-$KARAF_VERSION/bin/karaf "$@"