Can't access server when with more than 2 GB of RAM available

Can't access server when with more than 2 GB of RAM available - Close Up Photo of HyperX RAM

I made a server using forge, and me and my friends can play in the server without problems (i'm using Evolve, not Hamachi), but when I use a batch file to start the server and change -Xmx1024M to -Xmx2048M, the server runs without problems and I can access it, but my friends can't. I tried setting manually the ip for the server but it didnt work.

I'm using this batch script:

"C:\Program Files\Java\jre7\bin\java.exe" -Xmx2048M -Xms512M -jar server.jar nogui PAUSE

Thanks in advance!



Best Answer

"C:\Program Files\Java\jre7\bin\java.exe" -Xmx2048M -Xms512M -jar server.jar nogui PAUSE"

I believe both the Xmx and the Xms must be the same.

"C:\Program Files\Java\jre7\bin\java.exe" -Xmx2048M -Xms2048M -jar server.jar nogui PAUSE"



Pictures about "Can't access server when with more than 2 GB of RAM available"

Can't access server when with more than 2 GB of RAM available - Free stock photo of 2 4, 2 4ghz, 5ghz
Can't access server when with more than 2 GB of RAM available - Free stock photo of animal, bird, bone
Can't access server when with more than 2 GB of RAM available - Close Up Photo of Programming of Codes



Is 2GB RAM enough for a server?

2GB \u2013 A fantastic plan if you are also planning to add some base plugins or mods and increase your player base on your server. 3GB \u2013 Use this plan if you are planning to install medium-sized modpacks or plugin packs. This is suggested for up to 25 mods or plugins. 4GB \u2013 This plan includes most modpacks.

How do I give my server more RAM?

How to Allocate More RAM to a Minecraft Server with Default Launcher
  • Open your Minecraft. ...
  • Select your version, then press the icon with 3 dots. ...
  • Click More Options to open the drop-down menu. ...
  • You will need to pay attention to the \u2013Xmx2G. ...
  • Change the amount of allocated RAM by replacing the figure to your desired amount.


  • How much RAM do I need to dedicate to my minecraft server?

    At least 1 GB of RAM allocated for the server to run ( -Xmn 128M -Xmx 1G ). If you are using Windows or a desktop-based Linux distribution, you should have at least 1 GB of additional physical RAM in the computer, so the graphics on the desktop don't become laggy.

    How much RAM can a server have?

    Looking at servers, 16GB and 32GB are common capacities of server memory, although they can support up to 6TB for 2933 MT/s DDR4.



    Can - Mother Sky (1970) [HQ]




    Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

    Images: Athena, Gareth Willey, Tymur Khakimov, luis gomes