From 78ad58cd428ecffc7bb58ab59858f0cc7b3050e3 Mon Sep 17 00:00:00 2001 From: orbiter Date: Sun, 14 Sep 2008 20:35:50 +0000 Subject: [PATCH] the UseConcMarkSweepGC option caused a full CPU usage - bug on Darwin (Mac OS X) but it was reported that the same option causes a good performance on Solaris Therefore it is now only used if YaCy runs on solaris. Pleas make comparisment tests with/without this option on linux and change start script if it is obvious that the option causes the linux JVM to work better. (with Java 1.5 !) git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5156 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- startYACY.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/startYACY.sh b/startYACY.sh index f7949dfec..87ff4e2ef 100755 --- a/startYACY.sh +++ b/startYACY.sh @@ -99,7 +99,8 @@ done #echo $options;exit 0 #DEBUG for getopts #get javastart args -#JAVA_ARGS=""; +JAVA_ARGS="-server -XX:+UseAdaptiveSizePolicy"; +#JAVA_ARGS="-verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails $JAVA_ARGS"; #check if Linux system supports large memory pages or if OS is Solaris which #supports large memory pages since version 9 @@ -115,19 +116,18 @@ then fi elif [ $OS = "SunOS" ] then + # the UseConcMarkSweepGC option caused a full CPU usage - bug on Darwin. + # It was reported that the same option causes good performance on solaris. + JAVA_ARGS="$JAVA_ARGS -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode" ENABLEHUGEPAGES=1 fi - -JAVA_ARGS="-server -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:+UseAdaptiveSizePolicy"; #turn on support for large memory pages if supported by OS if [ $ENABLEHUGEPAGES -eq 1 ] then JAVA_ARGS="$JAVA_ARGS -XX:+UseLargePages" fi -#JAVA_ARGS="-verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails $JAVA_ARGS"; - if [ ! -f $CONFIGFILE -a -f DATA/SETTINGS/httpProxy.conf ] then # old config if new does not exist