summaryrefslogtreecommitdiff
path: root/startYACY.sh
diff options
context:
space:
mode:
authororbiter <orbiter@6c8d7289-2bf4-0310-a012-ef5d649a1542>2011-07-03 21:33:24 +0000
committerorbiter <orbiter@6c8d7289-2bf4-0310-a012-ef5d649a1542>2011-07-03 21:33:24 +0000
commit60ee245486fbc4abef994daef8856c726fe84a87 (patch)
treea7f368bb34ac20754e42322167f0c487c2ff6be8 /startYACY.sh
parent6d2e252bcfb1a36db86bbcc2003c07f04244d41f (diff)
setting startup options:
-Xss256k and -XX:ReservedCodeCacheSize=1024m after appearance of a malloc error together with a crash of the jvm which stated at the end of the log: # There is insufficient memory for the Java Runtime Environment to continue. # Native memory allocation (malloc) failed to allocate 32756 bytes for ChunkPool::allocate # Possible reasons: # The system is out of physical RAM or swap space # In 32 bit mode, the process size limit was hit # Possible solutions: # Reduce memory load on the system # Increase physical memory or swap space # Check if swap backing store is full # Use 64 bit Java on a 64 bit OS # Decrease Java heap size (-Xmx/-Xms) # Decrease number of Java threads # Decrease Java thread stack sizes (-Xss) # Set larger code cache with -XX:ReservedCodeCacheSize= this follows the last two points in the list of recommendations. To set appropriate values the default values from http://www.oracle.com/technetwork/java/hotspotfaq-138619.html and http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html had been considered git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7823 6c8d7289-2bf4-0310-a012-ef5d649a1542
Diffstat (limited to 'startYACY.sh')
-rwxr-xr-xstartYACY.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/startYACY.sh b/startYACY.sh
index e5520a4e4..47f9adbe8 100755
--- a/startYACY.sh
+++ b/startYACY.sh
@@ -6,7 +6,7 @@ PIDFILE="yacy.pid"
OS="`uname`"
#get javastart args
-JAVA_ARGS="-server -XX:MaxPermSize=256m -XX:-UseGCOverheadLimit -XX:+UseAdaptiveSizePolicy -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -Dfile.encoding=UTF-8";
+JAVA_ARGS="-server -Xss256k -XX:MaxPermSize=256m -XX:ReservedCodeCacheSize=1024m -XX:-UseGCOverheadLimit -XX:+UseAdaptiveSizePolicy -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -Dfile.encoding=UTF-8";
#JAVA_ARGS="-verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails $JAVA_ARGS";
#check if OS is Sun Solaris or one of the OpenSolaris distributions and use different version of id if necessary