changeset 2757:3d49d52f0173

Tune agent so as to use less memory. Reviewed-by: neugens Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2017-September/024980.html PR3447
author Severin Gehwolf <sgehwolf@redhat.com>
date Fri, 21 Jul 2017 16:27:18 +0200
parents d844cfb19af1
children 3f1f63227847
files distribution/scripts/thermostat
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/distribution/scripts/thermostat	Tue Sep 12 17:01:54 2017 +0200
+++ b/distribution/scripts/thermostat	Fri Jul 21 16:27:18 2017 +0200
@@ -104,6 +104,7 @@
     esac
 done
 
+THERMOSTAT_EXT_JAVA_OPTS="-XX:ThreadStackSize=300 -XX:MaxRAM=50m -XX:+UseSerialGC $THERMOSTAT_EXT_JAVA_OPTS"
 # if running on cygwin, modify THERMOSTAT_HOME and BOOT_CLASSPATH to windows for the JDK
 if [ $CYGWIN_MODE -eq 1 ]; then
   export THERMOSTAT_HOME="`cygpath -w $THERMOSTAT_HOME`"