summaryrefslogtreecommitdiff
path: root/startYACY.sh
diff options
context:
space:
mode:
authorMichael Peter Christen <mc@yacy.net>2021-07-19 20:04:11 +0200
committerMichael Peter Christen <mc@yacy.net>2021-07-19 20:04:11 +0200
commit15b7461bc7968bcfd8dfc516cf91c3548195e4a3 (patch)
tree5075622d4cf00f4fcd2736e3e4fff7ae49d33f80 /startYACY.sh
parentc3b3087077a2f9287cbe8e7665fef5cd02d26d99 (diff)
removed Xms java memory startup parameter
We will use the default value for now on. This is much better for resource economy and fits better into a container/docker/kubernetes strategy. Furthermore, a small memory footprint is essential for the usage on small devices like RaspberryPi.
Diffstat (limited to 'startYACY.sh')
-rwxr-xr-xstartYACY.sh10
1 files changed, 4 insertions, 6 deletions
diff --git a/startYACY.sh b/startYACY.sh
index 203eaeecf..0280b01ee 100755
--- a/startYACY.sh
+++ b/startYACY.sh
@@ -192,11 +192,9 @@ fi
if [ -f $CONFIGFILE ]
then
# startup memory
- for i in Xmx Xms; do
- j="`grep javastart_$i $CONFIGFILE | sed 's/^[^=]*=//'`";
- if [ -n "$j" ]; then JAVA_ARGS="-$j $JAVA_ARGS"; fi;
- done
-
+ j="`grep javastart_Xmx $CONFIGFILE | sed 's/^[^=]*=//'`";
+ if [ -n "$j" ]; then JAVA_ARGS="-$j $JAVA_ARGS"; fi;
+
# Priority
j="`grep javastart_priority $CONFIGFILE | sed 's/^[^=]*=//'`";
@@ -210,7 +208,7 @@ then
# JAVA_ARGS="-$i $JAVA_ARGS";
# done
else
- JAVA_ARGS="-Xmx600m -Xms180m $JAVA_ARGS";
+ JAVA_ARGS="-Xmx600m $JAVA_ARGS";
PORT="8090"
fi