Minecraft Forge Server adding more ram problem

Mr_19_

Commendable
Dec 29, 2016
4
0
1,510
I've successfully(sort of) made a Minecraft with a very ram heavy mod(Pixelmon) and on the default amount of ram allocated to the server the game lags waaayyy to much and the ram usage is always at 100%. I found a couple tutorials on how to add more ram and they're all the same steps but I can't get it working properly.

Basically, when I add ram to my server and the run the batch file with a Forge server that has Pixelmon I get this:

http://i.imgur.com/DqSpUOy.png


The .jar server is called "server.jar" and this is what's in the batch file:

@echo off
java -Xms4096M -Xmx4096M -jar server.jar gui
pause

One more thing: This batch file works if I use a regular minecraft.jar server but the forge version doesn't work.

PC Specs:

CPU: i5-6600k @ 3.5GHz
Motherboard: Asus Z170m-PLUS
Ram: 2 x 8GB Crucial @ 2133 + 2x 4GB Crucial @ 2133 = 24GB total
GPU: GTX 970 4GB
 

KR2

Reputable
Jun 9, 2015
265
0
4,960
Okay, i've setup numerous servers and this would be my solution:

@echo off
java -Xms1024M -Xmx4096M -jar server.jar gui
pause

Instead of having the minimum RAM at 4GB you should have it at 1GB, that's why the RAM usage is at 100% because it can only be at 4GB since that's how you set it up. The RAM usage should now be much lower. If the server still continues to lagg, add more RAM. If adding more RAM doesn't help then you should consider checking your internet speeds and see if that's the reason for it lagging since you are the host of the server.
 

Mr_19_

Commendable
Dec 29, 2016
4
0
1,510


I said my ram usage was at 100% before I made the batch file for the server and attempted to add more ram. That's why I wanted to add more ram