Problem with giving more RAM

Discussion in 'Hosting Advice' started by Farkasslime, Mar 20, 2020.

  1. My server almost well with 1 Gb RAM, but when I try to give it more it show this text (on the picture).
    If i try with 0,5Gb it still starts, so I just can't give the server more ram only less than 1 Gb.

    This the code: java -Xmx4096M -Xms4096M -jar minecraft.run.jar nogui 4g.png It is possible that I am an idiot, but I would be grateful if somebody could help me.
     
  2. Do you have a 32 bit installation of Java?
     
  3. I use Java 1.8.0 64 bit
     
  4. You're starting the server using 32 bit though.
    You can either specify the path the the 64 bit JRE, or I believe you can use -64?
     
  5. What do you see when you do java -version

    You need 64 bit Java and a 64 bit operating system.
     
  6. Sorry I was wrong, I have 1.8.0 AND 32 bit.