32 bit JRE on 64 bit machine

Posted on 2011-04-28
Last Modified: 2012-05-11
hi Guys,

will it be safe if I use 64 bit JRE and 64 bit tomcat on 32 bit linux server machine?

My reason to use 64 bit is : 32 bit JRE only could use max 2 GB RAM

Please advise.
Question by:softbless
    LVL 47

    Expert Comment

    Your question is 32 bit JRE on 64 bit machine,
     or vice versa 64 bit JRE on 32 bit machine?
    LVL 47

    Expert Comment

    LVL 92

    Accepted Solution

    > will it be safe if I use 64 bit JRE and 64 bit tomcat on 32 bit linux server machine?

    you can't, it won't run. you need a 64 bit OS
    LVL 47

    Assisted Solution

    well, you can't do something out of nothing...

    as you stated in your header: 32 bit JRE on 64 bit machine - seems possible;
    but not vice versa.

    Some people say they run virtiual machines guest 64 on 32 host (not sure that under Linux).
    But it is not the best combination either.

    Again, opposite works fine with virtualization
    LVL 26

    Assisted Solution

    Your real goal is >> My reason to use 64 bit is : 32 bit JRE only could use max 2 GB RAM

    In order to go beyond 2GB RAM (or perhaps 3GB depending on the OS)  you need a 64-bit JRE running on a 64-bit OS.

    However, be aware that at ~4GB (give or take) the cost of garbage collection tends to become so great that your application will start to pause for a number of seconds during garbage collection.

    It depends on your application whether that's acceptable or not but in many cases (e.g. a web application) it's not.

    But to even get up to those sorts of numbers you need to move to a 64-bit OS and 64-bit Java.


    Author Closing Comment


    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    bunnyEars challenge 6 47
    computer science syllabus 3 41
    base64 decode encode 12 60
    JAVA part two 5 19
    Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
    Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
    The viewer will learn how to implement Singleton Design Pattern in Java.
    This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now