startGameServer.bat 876 B

12345678910111213141516171819202122232425262728293031323334353637
  1. @echo off
  2. title Game Server Console
  3. :start
  4. echo Starting L2J Game Server.
  5. echo.
  6. java -Djava.util.logging.manager=com.l2jserver.util.L2LogManager -Xms1024m -Xmx1024m -cp ./../libs/*;l2jserver.jar com.l2jserver.gameserver.GameServer
  7. REM NOTE: If you have a powerful machine, you could modify/add some extra parameters for performance, like:
  8. REM -Xms1536m
  9. REM -Xmx3072m
  10. REM -XX:+AggressiveOpts
  11. REM Use this parameters carefully, some of them could cause abnormal behavior, deadlocks, etc.
  12. REM More info here: http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html
  13. if ERRORLEVEL 1 goto error
  14. if ERRORLEVEL 2 goto restart
  15. goto end
  16. :error
  17. echo.
  18. echo Game Server Terminated Abnormally!
  19. echo.
  20. goto end
  21. :restart
  22. echo.
  23. echo Admin Restarted Game Server.
  24. echo.
  25. goto start
  26. :end
  27. echo.
  28. echo Game Server Terminated.
  29. echo.
  30. pause