36 lines
849 B
Batchfile
36 lines
849 B
Batchfile
@echo off
|
|
title Game Server Console
|
|
|
|
:start
|
|
echo Starting L2J Game Server.
|
|
echo.
|
|
|
|
java -Djava.util.logging.manager=com.l2jserver.util.L2LogManager -Dpython.cachedir=../cachedir -Xms1024m -Xmx1536m -jar l2jserver.jar
|
|
|
|
REM NOTE: If you have a powerful machine, you could modify/add some extra parameters for performance, like:
|
|
REM -Xms1536m
|
|
REM -Xmx3072m
|
|
REM -XX:+AggressiveOpts
|
|
REM Use this parameters carefully, some of them could cause abnormal behavior, deadlocks, etc.
|
|
REM More info here: http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html
|
|
|
|
if ERRORLEVEL 2 goto restart
|
|
if ERRORLEVEL 1 goto error
|
|
goto end
|
|
|
|
:restart
|
|
echo.
|
|
echo Admin Restarted Game Server.
|
|
echo.
|
|
goto start
|
|
|
|
:error
|
|
echo.
|
|
echo Game Server Terminated Abnormally!
|
|
echo.
|
|
|
|
:end
|
|
echo.
|
|
echo Game Server Terminated.
|
|
echo.
|
|
pause |