diff options
| author | theli <theli@6c8d7289-2bf4-0310-a012-ef5d649a1542> | 2006-02-02 16:09:43 +0000 |
|---|---|---|
| committer | theli <theli@6c8d7289-2bf4-0310-a012-ef5d649a1542> | 2006-02-02 16:09:43 +0000 |
| commit | 4fa2be73c38bd7187d2c7310788ab5fb936cd2d8 (patch) | |
| tree | 1770dd8d949557f14c631e1741d2e49d7d2bfb55 | |
| parent | 02871864f44a54ca160021f7a1c733820c221bcb (diff) | |
*) startYACY.bat now reads the java runtime memory settings out of the yacy config file
Thanks to Galaxis and VT100
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1517 6c8d7289-2bf4-0310-a012-ef5d649a1542
| -rw-r--r-- | startYACY.bat | 1 | ||||
| -rw-r--r-- | startYACY_noconsole.bat | 20 |
2 files changed, 19 insertions, 2 deletions
diff --git a/startYACY.bat b/startYACY.bat index bbc6059f2..4e6e56339 100644 --- a/startYACY.bat +++ b/startYACY.bat @@ -1,5 +1,4 @@ @Echo Off
-
title YaCy
If %1.==CPGEN. GoTo :CPGEN
diff --git a/startYACY_noconsole.bat b/startYACY_noconsole.bat index 91c017308..124fe62c1 100644 --- a/startYACY_noconsole.bat +++ b/startYACY_noconsole.bat @@ -6,13 +6,31 @@ Set CLASSPATH=classes;htroot For %%X in (lib/*.jar) Do Call %0 CPGEN lib\%%X
For %%X in (libx/*.jar) Do Call %0 CPGEN libx\%%X
+set jmx=
+set jms=
+set javacmd=-Xmx64m -Xms10m
+if exist DATA\SETTINGS\httpProxy.conf GoTo :GETJAVACMD
+
+:STARTJAVA
Rem Starting yacy
Echo Generated Classpath:%CLASSPATH%
-javaw -classpath %CLASSPATH% yacy
+Echo JRE Parameters:%javacmd%
+javaw %javacmd% -classpath %CLASSPATH% yacy
Echo You can close the console safely
GoTo :END
+Rem This target is used to read java runtime parameters out of the yacy config file
+:GETJAVACMD
+for /F "tokens=1,2 delims==" %%i in (DATA\SETTINGS\httpProxy.conf) do (
+ if "%%i"=="javastart_Xmx" set jmx=%%j
+ if "%%i"=="javastart_Xms" set jms=%%j
+)
+if defined jmx set javacmd=-%jmx%
+if defined jms set javacmd=-%jms% %javacmd%
+
+GoTo :STARTJAVA
+
Rem This target is used to concatenate the classpath parts
:CPGEN
Set CLASSPATH=%CLASSPATH%;%2
|
