From c452a9f7ba38e42f9325c01dda665396d9a237f1 Mon Sep 17 00:00:00 2001 From: Amnon Heiman Date: Thu, 17 Dec 2015 09:14:02 +0200 Subject: [PATCH] Limit JVM maximum heap size to 256 MB This patch limit the JVM maximum heap size to 256MB. Signed-off-by: Amnon Heiman --- scripts/scylla-jmx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/scylla-jmx b/scripts/scylla-jmx index d2a054c..e3681f0 100755 --- a/scripts/scylla-jmx +++ b/scripts/scylla-jmx @@ -69,4 +69,4 @@ do esac done -exec java $API_ADDR $API_PORT $CONF_FILE -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=$JMX_PORT -Dcom.sun.management.jmxremote.rmi.port=$JMX_PORT -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -jar $LOCATION/urchin-mbean-1.0.jar +exec java $API_ADDR $API_PORT $CONF_FILE -Xmx256m -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=$JMX_PORT -Dcom.sun.management.jmxremote.rmi.port=$JMX_PORT -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -jar $LOCATION/urchin-mbean-1.0.jar