my dog learned polymorphism
The moose likes Performance and the fly likes Building appication on 64 bit O.S..Performance issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Performance
Bookmark "Building appication on 64 bit O.S..Performance issue" Watch "Building appication on 64 bit O.S..Performance issue" New topic

Building appication on 64 bit O.S..Performance issue

Prasad Sonawane

Joined: Jul 28, 2008
Posts: 9
Hi all..
I have a web application developed using Struts and EJB. The underlying server is Jboss 4.0.2.
Earlier i was building and running my application on 32 bit JVM and 32 bit O.S (windows). But due to performance issues (heap space problems) we decided to shift to 64 bit platform as our application involves multithreading. So now we are using 64 bit JVM with 64 bit underlying O.S (windows server enterprise 2008). This time we observed great performance improvement with this.

Now my question is i am building my application on a different developer m/c which is 32 bit O.S + 32 bit JVM and i port those jar/war to the 64 bit scene above. In order to best utilize 64-bit capabilities further , am i need to build the application and run it on the same 64 bit m/c with 64 bit JVM ?
I am really confused with this.

Thanks in advance..

Regards ~
Prasad Sonawane, Member Technical Staff, CDAC, India.
Kees Jan Koster
JavaMonitor Support

Joined: Mar 31, 2009
Posts: 251
Dear Prasad,

As far as I am aware, there is no difference for the programmers or even bytecode between 32/64 bit applications in Java. Just restart with the 64-bit JVM and go.

Java-monitor, JVM monitoring made easy <- right here on Java Ranch
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17410

Write Once, Run Anywhere. Even on 64-bit systems.

Sun has both 32-bit and 64-bit Java options. Any Sun server can run the 32-bit JVM. If the machine is a Sparc 64-bit machine, there's a secondary package that can be installed that causes selected native methods to be supplanted by their 64-bit equivalents. Probably it also enhances the JVM itself, but I haven't looked at details lately. The important thing is that absolutely no user code modifications are required as long as it's "100% Pure Java" - no native code.

Actually, the Java virtual instruction set has always been more of a 64-bit architecture anyway.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Building appication on 64 bit O.S..Performance issue
jQuery in Action, 3rd edition