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.
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.
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.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.