Installing 64 bit Java - Linux

Discussion in 'Bukkit Help' started by Kalebubbles, Aug 25, 2011.

  1. Offline

    Kalebubbles

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    This Is possibly the wrong section / forums in general but I'm in need of help for my MineCraft Server.

    I run a VPS with 4ghz, 4gig ram, 64 bit Centos 5.4

    I've looked for an entire day and cannot find a tutorial on how to install Java 64 bit. Basically I ran the command

    Although It installed the 32bit Java and I cannot run the server with more than 1gig ram with 32bit Java. When I attempt to run this command


    I get told



    How can I install the 64 bit version of Java?

    Thanks in advanced for the help.

    Kaleb.

    This post has been edited 1 time. It was last edited by Kalebubbles Aug 25, 2011.
  2. Offline

    Kalebubbles

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    My current java version: java-1.6.0-openjdk-1.6.0.0-1.22.1.9.8.el5_6.x86_64
  3. Offline

    TnT Trinitrotoluene Maximus Administrator Bukkit Help

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    What is the output of the
    Code:
    java -version
    command?

    You may have both installed, and you're PATH is setup to use the x86 Java only.

    This post has been edited 1 time. It was last edited by TnT Aug 25, 2011.
  4. Offline

    Kalebubbles

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME

    [root@V-2308 ~]# java -version
    java version "1.6.0_20"
    OpenJDK Runtime Environment (IcedTea6 1.9.8) (rhel-1.22.1.9.8.el5_6-x86_64)
    OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)
  5. Offline

    Kalebubbles

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    bump
    Infraction has been given for this message by ChrizC. Details | Aug 25, 2011
  6. Offline

    RROD

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Ok, #1: Stop bumping, and remove all exisiting installations of Java.

    Assuming you're using WinSCP...
    2#: Download the RPM of Java JRE x64 (NOT OpenJRE - Bukkit doesn't like it)

    3#: Put this in a folder using WinSCP, open a console.

    4#: In console type: rpm -i [package-name]
    and hit enter.

    5#: Make a file that with "java -Xmx4096M -Xms4096M -jar bukkit.jar nogui" in it. Save and name it "run.sh".

    6#: Right-click "run.sh" and click properties. A set of about 9 boxes will appear. Tick them all if they are not already ticked (Or type '0777' in the text box below it).

    7#: Execute "run.sh" and your server should run.

    This post has been edited 1 time. It was last edited by RROD Aug 25, 2011.
  7. Offline

    Brain

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    You cannot use more than 4GB with 32 Bit Java, but you can use almost 4GB. Have you tried 2GB or 3GB? Besides, you can't use all 4GB of RAM because you still need to run the Linux kernel and some other software.
    Also this command line sets the maximum heap size. You will need some additional memory for the actual JVM and Java-internal stuff. With 4GB RAM a maximum heap size of 3GB would be feasible.

    Oh, and I forgot something: If you specified too large a heap size, for example 5GB for a 32 Bit Java, you would see an error message like "Illegal heap size 5000M". The error message you provide expresses that the requested amount of memory is simply not available.

    This post has been edited 1 time. It was last edited by Brain Aug 25, 2011.
  8. Offline

    bassfader

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @Brain as far as I know you can't use more than 1.5GB Ram with the 32bit Java version, so using 3 or 4GB is definately out of question until he updates to java 64bit. (I think the real maximum was about 1.7GB or 1.8GB but its recommended to not use more than 1.5GB with the 32bit version)
  9. Offline

    Brain

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    That depends on your OS. I've just tested OpenJDK on a 4GB 32 Bit Linux machine. It barfs at 3GB heap size, but runs fine with 2.5GB, so 2GB maximum heap size should work.
    32 Bit Windows with Sun/Oracle Java barfs at 2GB, that's true.

    This post has been edited 1 time. It was last edited by Brain Aug 25, 2011.
  10. Offline

    Kalebubbles

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    thanks for the detailed help, this may be a /facepalm but how do i uninstall the current java? I really can't find any help at all, I don't know whether I'm searching the wrong key words but I really can't find anything relevant.
  11. Offline

    Kalebubbles

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    bump
    Infraction has been given for this message by ChrizC. Details | Aug 25, 2011
  12. Offline

    7eggert

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  13. Offline

    7eggert

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    NEVER give permission 0777. At most, give 0755.

    777 means everybody can change the file and let you run what they want you to run.
  14. Offline

    Lolmewn BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Do you know how to uninstall Java on Linux?
    I think I know how to re-install Java 7 again afterwards.
  15. Offline

    Kalebubbles

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    So I just java -version'd and It says
    Does that actually mean I have correct JDK64 Bit?
  16. Offline

    RROD

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    You have OpenJDK. That in a way is just a 'spin off' from the actual Java. Get the Java JRE from the official Java Website.
  17. Offline

    RROD

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    If you want to uninstall OpenJDK, you need the package name. Which I can't get for you because I don't know it. If you have a control panel for your VPS host, try and find out if you can uninstall it from there.
  18. Offline

    Lolmewn BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Mokay. Ill do some googling + VPS control stuffs
  19. Offline

    Kalebubbles

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I followed your advice and those are what I got afterwards :S

    Would you be able to help me with teamviewer or my VPS details and I would be willing to pay.

    This post has been edited 1 time. It was last edited by Kalebubbles Aug 25, 2011.
  20. Offline

    RROD

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I'm quite tied up atm, sorry but there's no more I can do for now.
  21. Offline

    Kalebubbles

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I've tried for nearly 2 days now, I've searched literally everything I can think of, I've cleared my entire O/S and reinstalled Centos 5.4 but I still can't launch from 4gig ram & when I do 3gig It gives me an error.

  22. Offline

    RROD

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  23. Offline

    7eggert

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  24. Offline

    Kalebubbles

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I started my server before I went to bed last night running 1gb ram, I woke up to find 2.768Million lines of error.

    Here's the first part that started it
    Anyone know what could've caused that and what I can do to fix?

Share This Page