This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
Author

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

Prasad Sonawane
Greenhorn

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
Rancher

Joined: Mar 31, 2009
Posts: 251
    
    5
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: 15950
    
  19

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Building appication on 64 bit O.S..Performance issue
 
Similar Threads
Native C code running out of Virtual Address Space ,JNI memory allocation.
32 bit JVM memory heap issue on 64 bit XP
Launching telnet using java program fails with Win 7 OS
Portability - Query on design
Detect which kind of JRE is installed - 32 or 64 bit