Solved Unable to allocate more then 2gb...

Discussion in 'Bukkit Help' started by Mironic, May 22, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    Mironic

    Hello I have a vps with a max of 15Gb ram... but it wont let me allocate more then 2gb of it...


    /root/noip/java/jre1.6.0_32/bin/java -Xmx2048m -Xms2048m -jar woop2.jar

    is the current and i want it to allocate about 6GB... but whenever i change it to 6144

    it goes all

    Invalid maximum heap size: -Xmx6144m
    The specified size exceeds the maximum representable size.
    Could not create the Java virtual machine.
    and im all
    WHY FA FUQ NOT
    so i try lower and lower and it keeps saying the same thing till it reaches 2gb then it works... but i need more... i have 900 players on my server... 2gbs wont do...


    CENTOS 5
     
  2. Offline

    Paswaru

    32bit applications are limited to 2GB of address space.

    You need to make sure you have a 64bit version of CentOS. You can do that using the uname -a command. If it 64bit it will say x86_64. I'd be surprised if your hosting provided installed a 32bit OS when your paying for 15GB of ram, but better to check.

    You also need a 64bit version of Java (JRE). java -version I'm pretty sure will tell you if its 32 or 64bit. For Java, I would normally just say download and install it, but /root/noip/java/jre1.6.0_32/bin/ is such a strange path to see on a VPS, I'd have your hosting provider install it for you.
     
  3. Offline

    Mironic

    all it says is this

    Linux Netora.com 2.6.18-194.17.1.el5.028stab070.7 #1 SMP Fri Oct 1 14:17:14 MSD 2010 i686 i686 i386 GNU/Linux
     
  4. Offline

    Paswaru

    Well I'm surprised, i386 is 32bit. Check with your hosting provider about switching to a 64bit kernel/OS. I don't want to make any assumption consider the strange file path.
     
  5. Offline

    Mironic

    it also says i686 so... could it be both? and is there something i can do to test that?
     
  6. Offline

    Paswaru

    i686 is the Pentium Pro, Pentium II and Pentium III, which were all 32bit. The kernel is just reporting what it was compiled for, not the actual hardware its running on. 32bit software is often compiled to this family because its the most compatible across all modern 32bit x86 processors.
     
  7. Offline

    Rjames426

    900 players?
     
  8. Offline

    Paswaru

    I assume he means total player base, not all online at once.
     
  9. Offline

    Mironic

    yeah :p online at once is like 20 - 60

    lol. anyway... i switched to a 64bit system. thanks.. although i have to use a backup for all the maps because my hosts did non say "your files will be lost" and i was like NUUUU lol anyway thanks <3 good thing i have people working to backup 4 times weekly
     
Thread Status:
Not open for further replies.

Share This Page