Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compile 64 bit Java program -server vs -d64

Tags:

java

I have a 64-bit JVM and I want to run it in server mode with the VM argument -server. I ran across that there is a -d64 vm flag that tells the vm to run as server.

Can u please tell me the differences between -server and -d64 on 64 bit JVM?

like image 209
user1409534 Avatar asked Jun 10 '14 05:06

user1409534


People also ask

What is the difference between 32-bit and 64-bit JVM?

In 32-bit JVM we can have less memory for heap size than in 64-bit JVM. In 64-bit JVM we can specify more memory for heap size than in 32-bit JVM. The limit for maximum memory in 32-bit is useful for 4G connectivity. It is particularly useful for java applications with large heaps.

What is the difference between 32-bit Java and 64-bit Java?

That's all about the difference between 32-bit and 64-bit JVM in Java. As you have seen, the key difference comes in how much memory you can allocate, while 32-bit JVM can just have 4G which is very less for modern, memory-intensive Java application, 64-bit JVM virtually gives you unlimited memory.

What is the difference between 32-bit and 64-bit compiler?

What Are 32-Bit and 64-Bit? When it comes to computers, the difference between 32-bit and a 64-bit is all about processing power. Computers with 32-bit processors are older, slower, and less secure, while a 64-bit processor is newer, faster, and more secure.

Is Java 32 or 64-bit better?

Does 64-bit JVM perform better than 32-bit JVM? Most of us think 64-bit is bigger than 32-bit, thus 64-bit JVM performance will be better than 32-bit JVM performance. Unfortunately, it's not the case. 64-bit JVM can have a small performance degradation than 32-bit JVM.


Video Answer


1 Answers

-d64 is used in the case where you have both a 32 bit and a 64 bit JVM installed to tell the system which VM to use. If you only have a 64 bit JVM on your system, it doesn't do anything. Note that the 64-bit VM doesn't have separate client and server modes, so if you're using it, the -server and -client arguments do nothing. So, in summary, if you've only installed a 64-bit VM, all 3 of these arguments are exactly the same, because none of them actually do anything.

like image 51
Jules Avatar answered Sep 30 '22 07:09

Jules