Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 10848  / 2 Years ago, sun, march 6, 2022, 11:44:16

I got a warning message:




jvm uses the client vm, make sure to run java with the server vm for best performance by adding -server to the command line




In fact, when i run java -version i get:



OpenJDK Runtime Environment (IcedTea7 2.3.2) (7u7-2.3.2a-0ubuntu0.12.04.1)
OpenJDK Client VM (build 23.2-b09, mixed mode, sharing)


How does one go about and change OpenJDK's defaults to always start under the server VM?


More From » 12.04

 Answers
2

Assuming you have both the client and server VM installed, you just need to change the order of the lines in jvm.cfg to make -server first. You can find jvm.cfg like this:



find $(dirname $(dirname $(readlink -f $(which java)))) -name jvm.cfg


On my machine, it's /usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/jvm.cfg.


[#35071] Tuesday, March 8, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lishrag

Total Points: 306
Total Questions: 109
Total Answers: 125

Location: Saint Lucia
Member since Wed, Feb 8, 2023
1 Year ago
;