Need Help Increasing RAM Allocation to Server

Hello I need help increasing the ram allocated to my server. I have tried multiple online tutorials but they have not worked for me. It is a modded forge 1.6.4 server (I did not create the server pack I am using one I found on technic launcher) The mods are ones used on S8 of Epic Proportions. The server pack is called Epic Proportions Season 8 The server has a .bat file and it contains this information (in th picture of the note document) in it but it its not increasing the ram allocation. When I run the .bat file for the first time this comes up (shown in the command prompt) after I do "y" then this happens and I do not know how to fix it (second picture of command prompt) In the screenshot of the notepad is what the .bat file shows when I open it up to edit it I do not know what any of this means but does it have anything to do with why I cannot allocate more ram? It is not a hardware issues as I have 32gb of ram in my PC I don't even know if this is the right place to post this.
No description
No description
No description
31 Replies
Admincraft Meta
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close !close !solved !answered
Requested by oaken1#0
Zaid
Zaid2y ago
what is that start bat???? I have never seen this before
oaken
oakenOP2y ago
I don't know. I found this server pack on technic after trying to run these mods on a server If I run the jar file the server will run but I'm having trouble allocating more ram
ProGamingDk
ProGamingDk2y ago
That error is from a wrong version of java
oaken
oakenOP2y ago
So I need to install the correct one?
ProGamingDk
ProGamingDk2y ago
Well yes ! Javaver
Carl-bot
Carl-bot2y ago
Recently, the Java version recommendations for Minecraft became more strict
For Minecraft <1.17, Java 11 is recommended. Minecraft 1.17 won't start without Java 16 (or newer). Minecraft 1.18 won't start without Java 17 (or newer).
Admincraft Canned Responses
oaken
oakenOP2y ago
I will try that and attempt to install java 11 I installed Java 11 I think but the same thing still happens when I run the .bat file.
ProGamingDk
ProGamingDk2y ago
do java -version
oaken
oakenOP2y ago
oh nvm it still says 17.06. how do I change it?
Lunaiskey
Lunaiskey2y ago
in your startup bat file replace java with "your/java/location/java.exe" you will have to find where your java jdk is installed and replace that will the path for example my start bat file "C:\Program Files\Java\jre1.8.0_331\bin\java.exe" -Xms2G -Xmx6G -jar server.jar nogui
oaken
oakenOP2y ago
i think i downloaded the wrong thing or something i got jdk 11 but im lost from here
No description
ProGamingDk
ProGamingDk2y ago
open the bin folder in there if theres a java.exe in there ur at the correct spot
oaken
oakenOP2y ago
oh i just found the java.exe in the bin folder
ProGamingDk
ProGamingDk2y ago
alright copy the path and just follow this
oaken
oakenOP2y ago
Do I need to double click the java.exe and run it?
ProGamingDk
ProGamingDk2y ago
no follow what maven said
oaken
oakenOP2y ago
ok so I need to copy this?
No description
ProGamingDk
ProGamingDk2y ago
yes and add on \java.exe
oaken
oakenOP2y ago
ok should I delete the rest of the text out of the file? and just leave what I am trying to change
ProGamingDk
ProGamingDk2y ago
yes
oaken
oakenOP2y ago
i feel i am doing something wrong
No description
ProGamingDk
ProGamingDk2y ago
did u include " ""
oaken
oakenOP2y ago
where do I need to put that
ProGamingDk
ProGamingDk2y ago
well follow mavens exmaple example*
snowznz.bak
snowznz.bak2y ago
copy this
"C:\Program Files\Java\jdk-11\bin\java.exe" -Xms4G -Xmx4G --add-modules=jdk.incubator.vector -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -jar server.jar nogui
"C:\Program Files\Java\jdk-11\bin\java.exe" -Xms4G -Xmx4G --add-modules=jdk.incubator.vector -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -jar server.jar nogui
and change 4G accordingly
Snow Kit
Snow Kit2y ago
for 1.6.4, you'd probably want to use Java 8 if it didn't work. I don't believe Java 11 will work with 1.6.4
Lunaiskey
Lunaiskey2y ago
they might mean 1.16.4, but if it is 1.6.4 then java 8 is the one
oaken
oakenOP2y ago
oh i need to install java 8 then cause it is 1.6.4 thank yall so much for the help ima keep trying when i get back from work omg i think its working thank yall so much I have been working on this for over 6 months How do I know if the server is using the right amount of ram that I set up for it Its capping out at 2.5 gigs in task manager
ProGamingDk
ProGamingDk2y ago
if it doesnt need it it wont use it
oaken
oakenOP2y ago
Ok I just didn't know because it was still lagging a little bit so I thought it would use more

Did you find this page helpful?