Banda 19 Опубликовано 27 сентября, 2013 Доброе время суток форумчане, собственно при запуске батника выдает ошибку достаточно не приятно, хотелось бы решить, сборка L2Scripts vip Gracia Epilogue, собственно помогите решить проблему, буду весьма признателен, опять же проблема не столь страшная, но не приятно хотелось бы решить, ранее просто не обращал на это внимание. C:\l2s-scripts\game>я╗┐@echo off "я╗┐@echo" не является внутренней или внешней командой, исполняемой программой или пакетным файлом. C:\l2s-scripts\game>title L2Scripts GameServer C:\l2s-scripts\game>echo 27.09.2013 18:09:43,18 Game server is running !!! 1>ga meserver_is_running.tmp C:\l2s-scripts\game>echo Starting L2Scripts Game Server. Starting L2Scripts Game Server. C:\l2s-scripts\game>echo. C:\l2s-scripts\game>REM set PATH="type here your path to java jdk/jre (including bin folder)" C:\l2s-scripts\game>REM Default parameters for a basic server. C:\l2s-scripts\game>REM ======== Optimize memory settings ======= C:\l2s-scripts\game>REM Minimal size with geodata is 1.5G, w/o geo 1G C:\l2s-scripts\game>REM Make sure -Xmn value is always 1/4 the size of -Xms and -Xmx. C:\l2s-scripts\game>REM -Xms set initial Java heap size C:\l2s-scripts\game>REM -Xmx set maximum Java heap size C:\l2s-scripts\game>REM -Xmn Size of young generation C:\l2s-scripts\game>REM =============================== C:\l2s-scripts\game>REM Set heap min/max to same size for consistent results C:\l2s-scripts\game>REM ╨╛╨┤╨╕╨╜╨░╨║╨╛╨▓╤Л╨╣ ╤А╨░╨╖╨╝╨╡╤А ╨┐╨░╨╝╤П╤В╨╕ ╨┤╨╗╤П Xm s ╨╕ Xmx, JVM ╨┐╤Л╤В╨░╨╡╤В╤Б╤П ╤Г╨┤╨╡╤А╨╢╨░╤В╤М ╤А╨░╨╖╨╝╨╡╤А heap'╨░ ╨╝╨╕╨╜╨╕╨╝╨ ░╨╗╤М╨╜╤Л╨╝, ╨╕ ╨╡╤Б╨╗╨╕ ╨╡╨│╨╛ ╨╜╤Г╨╢╨╜╨╛ ╨╝╨╡╨╜╤М╤И╨╡, ╤З╨╡╨╝ ╨▓ Xmx - ╨│╨╛╨╜╤ П╨╡╤В GC ╨┐╨╛╨╜╨░╨┐╤А╨░╤Б╨╜╤Г C:\l2s-scripts\game>SET java_opts= -Xms6024m C:\l2s-scripts\game>SET java_opts= -Xms6024m -Xmx6024m C:\l2s-scripts\game>REM Non Heap memory C:\l2s-scripts\game>SET java_opts= -Xms6024m -Xmx6024m -XX:PermSize=512m C:\l2s-scripts\game>REM Maximum size of the permanent generation. C:\l2s-scripts\game>SET java_opts= -Xms6024m -Xmx6024m -XX:PermSize=512m -XX:Max PermSize=640m C:\l2s-scripts\game>REM Garbage collector/Performance Options C:\l2s-scripts\game>SET java_opts= -Xms6024m -Xmx6024m -XX:PermSize=512m -XX:Max PermSize=640m -XX:+UseConcMarkSweepGC C:\l2s-scripts\game>SET java_opts= -Xms6024m -Xmx6024m -XX:PermSize=512m -XX:Max PermSize=640m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC C:\l2s-scripts\game>SET java_opts= -Xms6024m -Xmx6024m -XX:PermSize=512m -XX:Max PermSize=640m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalMode C:\l2s-scripts\game>SET java_opts= -Xms6024m -Xmx6024m -XX:PermSize=512m -XX:Max PermSize=640m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalMode - XX:MaxGCPauseMillis=500 C:\l2s-scripts\game>REM SET java_opts= -Xms6024m -Xmx6024m -XX:PermSize=512m -XX :MaxPermSize=640m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalMo de -XX:MaxGCPauseMillis=500 -XX:CMSIncrementalSafetyFactor=50 C:\l2s-scripts\game>REM Number of garbage collector threads for the parallel you ng generation collections and for the parallel parts of the old generation colle ctions C:\l2s-scripts\game>SET java_opts= -Xms6024m -Xmx6024m -XX:PermSize=512m -XX:Max PermSize=640m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalMode - XX:MaxGCPauseMillis=500 -XX:ParallelGCThreads=10 C:\l2s-scripts\game>SET java_opts= -Xms6024m -Xmx6024m -XX:PermSize=512m -XX:Max PermSize=640m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalMode - XX:MaxGCPauseMillis=500 -XX:ParallelGCThreads=10 -XX:ParallelCMSThreads=5 C:\l2s-scripts\game>SET java_opts= -Xms6024m -Xmx6024m -XX:PermSize=512m -XX:Max PermSize=640m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalMode - XX:MaxGCPauseMillis=500 -XX:ParallelGCThreads=10 -XX:ParallelCMSThreads=5 -XX:+A ggressiveOpts C:\l2s-scripts\game>REM Default size of new generation C:\l2s-scripts\game>REM SET java_opts= -Xms6024m -Xmx6024m -XX:PermSize=512m -XX :MaxPermSize=640m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalMo de -XX:MaxGCPauseMillis=500 -XX:ParallelGCThreads=10 -XX:ParallelCMSThreads=5 -X X:+AggressiveOpts -XX:NewSize=512m C:\l2s-scripts\game>REM SET java_opts= -Xms6024m -Xmx6024m -XX:PermSize=512m -XX :MaxPermSize=640m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalMo de -XX:MaxGCPauseMillis=500 -XX:ParallelGCThreads=10 -XX:ParallelCMSThreads=5 -X X:+AggressiveOpts -XX:MaxNewSize=1024m C:\l2s-scripts\game>REM instructs the VM to set a 2:1 ratio between young and te nured generations (Ratio of new/old generation sizes) C:\l2s-scripts\game>REM SET java_opts= -Xms6024m -Xmx6024m -XX:PermSize=512m -XX :MaxPermSize=640m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalMo de -XX:MaxGCPauseMillis=500 -XX:ParallelGCThreads=10 -XX:ParallelCMSThreads=5 -X X:+AggressiveOpts -XX:NewRatio=2 C:\l2s-scripts\game>REM Sets survivor space ratio to 1:8, resulting in larger su rvivor spaces (the smaller the ratio, the larger the space). Larger survivor spa ces allow short lived objects a longer time period to die in the young generatio n C:\l2s-scripts\game>REM SET java_opts= -Xms6024m -Xmx6024m -XX:PermSize=512m -XX :MaxPermSize=640m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalMo de -XX:MaxGCPauseMillis=500 -XX:ParallelGCThreads=10 -XX:ParallelCMSThreads=5 -X X:+AggressiveOpts -XX:SurvivorRatio=8 C:\l2s-scripts\game>REM Allows 80, allowing better utilization of the survivor s pace memory. C:\l2s-scripts\game>REM SET java_opts= -Xms6024m -Xmx6024m -XX:PermSize=512m -XX :MaxPermSize=640m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalMo de -XX:MaxGCPauseMillis=500 -XX:ParallelGCThreads=10 -XX:ParallelCMSThreads=5 -X X:+AggressiveOpts -XX:TargetSurvivorRatio=50 C:\l2s-scripts\game>REM SET java_opts= -Xms6024m -Xmx6024m -XX:PermSize=512m -XX :MaxPermSize=640m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalMo de -XX:MaxGCPauseMillis=500 -XX:ParallelGCThreads=10 -XX:ParallelCMSThreads=5 -X X:+AggressiveOpts -XX:MaxTenuringThreshold=5 C:\l2s-scripts\game>SET java_opts= -Xms6024m -Xmx6024m -XX:PermSize=512m -XX:Max PermSize=640m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalMode - XX:MaxGCPauseMillis=500 -XX:ParallelGCThreads=10 -XX:ParallelCMSThreads=5 -XX:+A ggressiveOpts -XX:+UseCMSInitiatingOccupancyOnly C:\l2s-scripts\game>SET java_opts= -Xms6024m -Xmx6024m -XX:PermSize=512m -XX:Max PermSize=640m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalMode - XX:MaxGCPauseMillis=500 -XX:ParallelGCThreads=10 -XX:ParallelCMSThreads=5 -XX:+A ggressiveOpts -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFract ion=80 C:\l2s-scripts\game>REM SET java_opts= -Xms6024m -Xmx6024m -XX:PermSize=512m -XX :MaxPermSize=640m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalMo de -XX:MaxGCPauseMillis=500 -XX:ParallelGCThreads=10 -XX:ParallelCMSThreads=5 -X X:+AggressiveOpts -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyF raction=80 -XX:+CMSParallelRemarkEnabled C:\l2s-scripts\game>SET java_opts= -Xms6024m -Xmx6024m -XX:PermSize=512m -XX:Max PermSize=640m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalMode - XX:MaxGCPauseMillis=500 -XX:ParallelGCThreads=10 -XX:ParallelCMSThreads=5 -XX:+A ggressiveOpts -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFract ion=80 -XX:+CMSClassUnloadingEnabled C:\l2s-scripts\game>REM Logging C:\l2s-scripts\game>REM SET java_opts= -Xms6024m -Xmx6024m -XX:PermSize=512m -XX :MaxPermSize=640m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalMo de -XX:MaxGCPauseMillis=500 -XX:ParallelGCThreads=10 -XX:ParallelCMSThreads=5 -X X:+AggressiveOpts -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyF raction=80 -XX:+CMSClassUnloadingEnabled -XX:+PrintGCDetails C:\l2s-scripts\game>REM SET java_opts= -Xms6024m -Xmx6024m -XX:PermSize=512m -XX :MaxPermSize=640m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalMo de -XX:MaxGCPauseMillis=500 -XX:ParallelGCThreads=10 -XX:ParallelCMSThreads=5 -X X:+AggressiveOpts -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyF raction=80 -XX:+CMSClassUnloadingEnabled -XX:+PrintGCDateStamps C:\l2s-scripts\game>REM SET java_opts= -Xms6024m -Xmx6024m -XX:PermSize=512m -XX :MaxPermSize=640m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalMo de -XX:MaxGCPauseMillis=500 -XX:ParallelGCThreads=10 -XX:ParallelCMSThreads=5 -X X:+AggressiveOpts -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyF raction=80 -XX:+CMSClassUnloadingEnabled -XX:+PrintGCApplicationStoppedTime C:\l2s-scripts\game>REM SET java_opts= -Xms6024m -Xmx6024m -XX:PermSize=512m -XX :MaxPermSize=640m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalMo de -XX:MaxGCPauseMillis=500 -XX:ParallelGCThreads=10 -XX:ParallelCMSThreads=5 -X X:+AggressiveOpts -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyF raction=80 -XX:+CMSClassUnloadingEnabled -XX:+PrintGCTimeStamps C:\l2s-scripts\game>REM SET java_opts= -Xms6024m -Xmx6024m -XX:PermSize=512m -XX :MaxPermSize=640m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalMo de -XX:MaxGCPauseMillis=500 -XX:ParallelGCThreads=10 -XX:ParallelCMSThreads=5 -X X:+AggressiveOpts -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyF raction=80 -XX:+CMSClassUnloadingEnabled -XX:+PrintGC C:\l2s-scripts\game>REM SET java_opts= -Xms6024m -Xmx6024m -XX:PermSize=512m -XX :MaxPermSize=640m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalMo de -XX:MaxGCPauseMillis=500 -XX:ParallelGCThreads=10 -XX:ParallelCMSThreads=5 -X X:+AggressiveOpts -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyF raction=80 -XX:+CMSClassUnloadingEnabled -Xloggc:./log/game/garbage_collector.lo g C:\l2s-scripts\game>SET java_settings= -Dfile.encoding=UTF-8 C:\l2s-scripts\game>SET java_settings= -Dfile.encoding=UTF-8 -Djava.net.preferIP v4Stack=true C:\l2s-scripts\game>SET java_settings= -Dfile.encoding=UTF-8 -Djava.net.preferIP v4Stack=true -Dl2nextgen.library=./lib C:\l2s-scripts\game>java -server -Dfile.encoding=UTF-8 -Djava.net.preferIPv4Sta ck=true -Dl2nextgen.library=./lib -Xms6024m -Xmx6024m -XX:PermSize=512m -XX:Max PermSize=640m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalMode - XX:MaxGCPauseMillis=500 -XX:ParallelGCThreads=10 -XX:ParallelCMSThreads=5 -XX:+A ggressiveOpts -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFract ion=80 -XX:+CMSClassUnloadingEnabled -cp ./lib/*;l2Sserver.jar l2s.game.GameServ er 18:09:43.562 Loading gameserver config. 18:09:43.609 Loading: ./config/gameserver.ini. 18:09:43.609 Loading: ./config/developer.ini. 18:09:43.609 Loading: ./config/fame.ini. 18:09:43.609 Loading: ./config/gameserver.ini. 18:09:43.734 Loading: ./config/clan.ini. Ну как бы когда меняешь в батнике данные значение SET java_opts=%java_opts% -Xms6024m SET java_opts=%java_opts% -Xmx6024m Появляется данная проблема, когда стоит стандартом 1024 то проблем нету. Собственно помогите настроить батник. @echo off @color 0A title L2Scripts GameServer :start echo %DATE% %TIME% Game server is running !!! > gameserver_is_running.tmp echo Starting L2Scripts Game Server. echo. REM set PATH="type here your path to java jdk/jre (including bin folder)" REM Default parameters for a basic server. REM ======== Optimize memory settings ======= REM Minimal size with geodata is 1.5G, w/o geo 1G REM Make sure -Xmn value is always 1/4 the size of -Xms and -Xmx. REM -Xms set initial Java heap size REM -Xmx set maximum Java heap size REM -Xmn Size of young generation REM =============================== REM Set heap min/max to same size for consistent results REM одинаковый размер памяти для Xms и Xmx, JVM пытается удержать размер heap'а минимальным, и если его нужно меньше, чем в Xmx - гоняет GC понапрасну SET java_opts=%java_opts% -Xms6024m SET java_opts=%java_opts% -Xmx6024m REM Non Heap memory SET java_opts=%java_opts% -XX:PermSize=512m REM Maximum size of the permanent generation. SET java_opts=%java_opts% -XX:MaxPermSize=640m REM Garbage collector/Performance Options SET java_opts=%java_opts% -XX:+UseConcMarkSweepGC SET java_opts=%java_opts% -XX:+UseParNewGC SET java_opts=%java_opts% -XX:+CMSIncrementalMode SET java_opts=%java_opts% -XX:MaxGCPauseMillis=500 REM SET java_opts=%java_opts% -XX:CMSIncrementalSafetyFactor=50 REM Number of garbage collector threads for the parallel young generation collections and for the parallel parts of the old generation collections SET java_opts=%java_opts% -XX:ParallelGCThreads=10 SET java_opts=%java_opts% -XX:ParallelCMSThreads=5 SET java_opts=%java_opts% -XX:+AggressiveOpts REM Default size of new generation REM SET java_opts=%java_opts% -XX:NewSize=512m REM SET java_opts=%java_opts% -XX:MaxNewSize=1024m REM instructs the VM to set a 2:1 ratio between young and tenured generations (Ratio of new/old generation sizes) REM SET java_opts=%java_opts% -XX:NewRatio=2 REM Sets survivor space ratio to 1:8, resulting in larger survivor spaces (the smaller the ratio, the larger the space). Larger survivor spaces allow short lived objects a longer time period to die in the young generation REM SET java_opts=%java_opts% -XX:SurvivorRatio=8 REM Allows 80% of the survivor spaces to be occupied instead of the default 50%, allowing better utilization of the survivor space memory. REM SET java_opts=%java_opts% -XX:TargetSurvivorRatio=50 REM SET java_opts=%java_opts% -XX:MaxTenuringThreshold=5 SET java_opts=%java_opts% -XX:+UseCMSInitiatingOccupancyOnly SET java_opts=%java_opts% -XX:CMSInitiatingOccupancyFraction=80 REM SET java_opts=%java_opts% -XX:+CMSParallelRemarkEnabled SET java_opts=%java_opts% -XX:+CMSClassUnloadingEnabled REM Logging REM SET java_opts=%java_opts% -XX:+PrintGCDetails REM SET java_opts=%java_opts% -XX:+PrintGCDateStamps REM SET java_opts=%java_opts% -XX:+PrintGCApplicationStoppedTime REM SET java_opts=%java_opts% -XX:+PrintGCTimeStamps REM SET java_opts=%java_opts% -XX:+PrintGC REM SET java_opts=%java_opts% -Xloggc:./log/game/garbage_collector.log SET java_settings=%java_settings% -Dfile.encoding=UTF-8 SET java_settings=%java_settings% -Djava.net.preferIPv4Stack=true SET java_settings=%java_settings% -Dl2nextgen.library=./lib java -server %java_settings% %java_opts% -cp ./lib/*;l2Sserver.jar l2s.game.GameServer if ERRORLEVEL 2 goto restart if ERRORLEVEL 1 goto error goto end :restart echo. echo L2Scripts: Administrator Restarting. echo. goto start :error echo. echo L2Scripts: Server terminated abnormally. echo. :end echo. echo L2Scripts: Server terminated. echo. del gameserver_is_running.tmp pause Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты
localhost 715 Опубликовано 27 сентября, 2013 может оперативы много выделяешь? т.е. нет столько Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты
Banda 19 Опубликовано 27 сентября, 2013 может оперативы много выделяешь? т.е. нет столько Есть, оперативы 8гб Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты