I tried increasing the values to Xmx1024 Xms2048 and got:Įrror occurred during initialization of VMĬould not reserve enough space for 2097152kb object heapĪnd when I increase them to Xmx3072 Xms2048, it says:Ĭould not reserve enough space for 3145728kb object heap Whenever I try and change the values to something higher than they are in your example (Xmx512 and Xms1024), the console always has a problem and cant launch the server, when the entire reason I made the batch file was to allocate more ram for the server to use! Java.exe -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=2 -XX:+AggressiveOpts -Xms%minram% -Xmx%maxram% -jar %jar% nogui Xcopy /e /y %folder_world% %folder_backup% 2^>NUL^|find "Address:"') Do set PublicIP=%%A I’m not a Windows script pro by any means (I’m usually using Linux), but if you have any questions please feel free to ask in the comments below!įor /f "delims= tokens=2" %%a in ('ping -4 -n 1 %ComputerName% ^| findstr [') do set LocalIP=%%aįor /f "tokens=2 delims=: " %%A in ('nslookup. jar file called by this script, you can use it to launch either a vanilla server or a modified server like Forge. I like doing this out of habit in certain situations, you can take it or leave it.īy simply changing the.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |