• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

A question about OS, JDK/Java version and Jboss

 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sometimes I am confused by the relationship between OS and JDK version.

Assumed we have an OS of 64-bit LINUX. I install a Jboss 5 on it. What a JDK should I use? A 32-bit? A 64-bit? Or regardless?

 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can run either the 32-bit or 64-bit JDK on a 64-bit OS. This is assuming that you are running on an AMD or Intel EM64T-capable CPU.

Which one should you use? It depends entirely on the apps you deploy. If you apps need lots of heap space, use the 64-bit JVM because you can declare a larger heap size, but be careful - larger heaps mean larger GC pause times.
 
Thomas Chang
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Peter Johnson wrote:You can run either the 32-bit or 64-bit JDK on a 64-bit OS. This is assuming that you are running on an AMD or Intel EM64T-capable CPU.

Which one should you use? It depends entirely on the apps you deploy. If you apps need lots of heap space, use the 64-bit JVM because you can declare a larger heap size, but be careful - larger heaps mean larger GC pause times.



"assuming that you are running on an AMD or Intel EM64T-capable CPU"?

I am using 64-bit RedHat LINUX. Is there any difference?
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think that RedHat also runs on SPARC, not sure if 64-bit SPARC supports 32-bit SPARC apps (or if there is even such a thing).

In general, if you have an off-the-shelf PC with an Intel or AMD CPU, 64-bit RedHat (I assume you mean RedHat Enterprise Linux, and not Fedora) will run 32-bit apps. (Unless you happened to pick up an Itanium PC, but those fairly rare.)
 
reply
    Bookmark Topic Watch Topic
  • New Topic