startGameServer.bat 812 B

1234567891011121314151617181920212223242526272829
  1. @echo off
  2. title Game Server Console
  3. :start
  4. echo Starting L2J Game Server.
  5. echo.
  6. REM -------------------------------------
  7. REM Default parameters for a basic server.
  8. java -Djava.util.logging.manager=com.l2jserver.util.L2LogManager -Xms1024m -Xmx1024m -cp ./../libs/*;l2jserver.jar com.l2jserver.gameserver.GameServer
  9. REM
  10. REM If you have a big server and lots of memory, you could experiment for example with
  11. REM java -server -Xmx1536m -Xms1024m -Xmn512m -XX:PermSize=256m -XX:SurvivorRatio=8 -Xnoclassgc -XX:+AggressiveOpts
  12. REM -------------------------------------
  13. if ERRORLEVEL 2 goto restart
  14. if ERRORLEVEL 1 goto error
  15. goto end
  16. :restart
  17. echo.
  18. echo Admin Restart ...
  19. echo.
  20. goto start
  21. :error
  22. echo.
  23. echo Server terminated abnormaly
  24. echo.
  25. :end
  26. echo.
  27. echo server terminated
  28. echo.
  29. pause