Cant allocate 8gb to the run.bat?

Discussion in 'Spigot Help' started by InvictusMC, Jun 1, 2016.

  1. Ok so I used a run.bat from the internet:

    @Echo off
    java -Xms512M -Xmx1G -XX:MaxPermSize=128M -XX:+UseConcMarkSweepGC -jar spigot.jar
    pause

    and works fine however if I increase the maximum memory to this:

    @Echo off
    java -Xms512M -Xmx8192M -XX:MaxPermSize=128M -XX:+UseConcMarkSweepGC -jar spigot.jar
    pause

    it displays this:
    [​IMG]

    I have a 64bit system and have 24gb ram so shouldn't at all be running out of memory.
    Any help would be appreciated. Thanks.
     
  2. You most likely have 32-bit java installed. Install a 64-bit version to solve the problem.
     
    • Agree Agree x 1