summaryrefslogtreecommitdiff
path: root/startYACY.bat
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.bat
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.bat')
-rw-r--r--startYACY.bat2
1 files changed, 1 insertions, 1 deletions
diff --git a/startYACY.bat b/startYACY.bat
index b2e0b1ce8..7d3efb465 100644
--- a/startYACY.bat
+++ b/startYACY.bat
@@ -21,7 +21,7 @@ if exist DATA\SETTINGS\httpProxy.conf GoTo :RENAMEINDEX
if exist DATA\SETTINGS\yacy.conf GoTo :GETSTARTOPTS
:STARTJAVA
-set javacmd=%javacmd% -XX:-UseGCOverheadLimit -XX:+UseAdaptiveSizePolicy -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -Dfile.encoding=UTF-8
+set javacmd=%javacmd% -Xss256k -XX:MaxPermSize=256m -XX:ReservedCodeCacheSize=1024m -XX:-UseGCOverheadLimit -XX:+UseAdaptiveSizePolicy -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -Dfile.encoding=UTF-8
Rem Starting YaCy
Echo Generated classpath:%CLASSPATH%
Echo JRE Parameters:%javacmd%