• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 655
  • Last Modified:

32 bit JRE on 64 bit machine

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.
0
softbless
Asked:
softbless
3 Solutions
 
for_yanCommented:
Your question is 32 bit JRE on 64 bit machine,
 or vice versa 64 bit JRE on 32 bit machine?
0
 
objectsCommented:
> 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
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
for_yanCommented:
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
0
 
dpearsonCommented:
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.

Doug
0
 
softblessAuthor Commented:
thanks
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now