Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

compile 32 bit deploy to 64 bit

 
Tom Henricksen
Author
Ranch Hand
Posts: 144
5
Eclipse IDE jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If we deploy to a 64 bit JVM do we need to compile in a 64 bit JVM so it runs optimally? Or is the bytecode the same no matter where you compile it? We have deployed our code to a 64 bit enviroment and it appears slow. It was compiled in a 32 bit enviroment. Just want to make sure we are doing everything correctly.
Thanks,
Tom

[ January 31, 2008: Message edited by: Tom Henricksen ]
[ January 31, 2008: Message edited by: Tom Henricksen ]
 
Henry Wong
author
Marshal
Pie
Posts: 21123
78
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Tom Henricksen:
If we deploy to a 64 bit JVM do we need to compile in a 64 bit JVM so it runs optimally? Or is the bytecode the same no matter where you compile it? We have deployed our code to a 64 bit enviroment and it appears slow. It was compiled in a 32 bit enviroment. Just want to make sure we are doing everything correctly.
Thanks,
Tom


The Java bytecode is the same regardless of whether it is deployed in a 32 bit or 64 bit JVM. When the JVM runs, the JIT will compile the java application from the bytecode to the native enviroment, which will be 32 bit for one case, and 64 bit for the other.

Henry
 
Tom Henricksen
Author
Ranch Hand
Posts: 144
5
Eclipse IDE jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Henry
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic