java - JIT compiler - compiler choosing options -


on 64 bit linux, java8, when running java command, seems 3 options -client / -server / -d64 using 64-bit server compiler.

the questions are: (for 64bit linux java8)

  • since -client , -server use same compiler, makes difference specify 1 of 2 options?
  • for long running java daemon program, preferred use -server -xx:+tieredcompilation or without it, when during startup time it's ok little slow.

look @ file jre/lib/amd64/jvm.cfg. you'll see lines

-server known -client ignore 

this means -client option ignored. -server nothing, since jdk 8 x64 has 1 jvm includes both c1 , c2 compilers, , tiered compilation on default.

with -xx:+tieredcompilation or without it

does not matter, because option on default. advanced compilation policy works fine both client-grade , server-grade applications. there no need turn off manually.


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -