Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (636)
Games in Android Showcase (178)
games submitted by our members
Games in WIP (685)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  HotSpot Options  (Read 18577 times)
0 Members and 1 Guest are viewing this topic.
Offline Wiki Duke


« Posted 2014-02-10 09:47:15 »

Sets the inital heap space.

Sets the max heap space.

-XX Options

To check all options supported by your VM:
java -server -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions -XX:+PrintFlagsFinal

Pregenerated: 1.8.0 60 64-bit

Behavior Options

IgnoreUnrecognizedVMOptions (Boolean: false)
Ignore unrecognized VM options.

EagerInitialization (Boolean: false)
Eagerly initialize classes when possible.

GenerateRangeChecks (Boolean: true)
Generate range checks for array accesses

ForceTimeHighResolution (Boolean: false)

OnError (Comma seperated string list: empty)
Run user-defined commands on fatal error; see VMError.cpp for examples

OnOutOfMemoryError (Comma seperated string list: empty)
Run user-defined commands on first java.lang.OutOfMemoryError.
Example: -XX:OnOutOfMemoryError ="sh ~/"

UseCompressedStrings (Boolean: false)
Use byte arrays for strings which are ASCII.

Memory Options

InitialHeapSize (Integer: 0)
Initial heap size (in bytes); zero means OldSize + NewSize

MaxHeapSize (Integer: 96M)
Maximum heap size (in bytes).  -Xmx maps to this.

InitialRAMFraction (Integer: 64)
Fraction (1/n) of real memory used for initial heap size

MaxDirectMemorySize (Integer: -1)
Maximum total size of NIO direct-buffer allocations.

MaxHeapFreeRatio (Integer: 70)
Max percentage of heap free after GC to avoid shrinking.

InitialCodeCacheSize (Integer: platform specific)
Initial code cache size (in bytes)



Runtime Compiler Options

AggressiveOpts (Boolean: false)
Turn on optimizations that are expected to be default in upcomming version.

CompileThreshold (Integer: platform specific)
Number of interpreted method invocations before (re)compiling.  Lowering this number gives the compiler less time to gather accurate statistics which could result in slower code and will cause the compiler to run more often which increases CPU burden within a given time window.

DontCompileHugeMethods (Boolean: LOOKUP)
Don't compile methods larger HugeMethodLimit if true.

HugeMethodLimit (Integer: 8000)
Don't compile methods larger than the value if DontCompileHugeMethods is true.

MinInliningThreshold (Integer: 250)
Minimum invocation count a method needs to have to be inlined.

MaxInlineLevel (Integer: 9)
Maximum number of nested calls that are inlined.

MaxRecursiveInlineLevel (Integer: 1)
Maximum number of nested recursive calls that are inlined.

MaxTrivialSize (Integer: 6)
Maximum bytecode size of a trivial method to be inlined

MaxInlineSize (Integer: 35)
Maximum bytecode size of a method to be inlined.

FreqInlineSize (Integer : platform specific)
maximum bytecode size of a frequent method to be inlined

InlineFrequencyRatio (Integer: 20)
Ratio of call site execution to caller method invocation.

InlineSmallCode (Integer: )
Only inline already compiled methods if their code size is less than this.

DelayCompilationDuringStartup (Boolean: true)
Delay invoking the compiler until the main class is loaded.

DesiredMethodLimit (Integer: 8000)
Desired maximum method size (in bytecodes) after inlining.

InlineAccessors (Boolean: true)
Inline accessor methods (get/set)

PerBytecodeRecompilationCutoff (Integer: 200)
Per-BCI limit on repeated recompilation (-1=>'Inf')

PerMethodRecompilationCutoff (Integer: 400)
After recompiling N times, stay in the interpreter (-1=>'Inf').

Garbage Collector Options (General)

InitialSurvivorRatio (Integer: Cool
Initial ratio of eden/survivor space size

InitialTenuringThreshold (Integer: 7)
nitial value for tenuring threshold

DisableExplicitGC (Boolean: false)
Choose if calling
does a full GC.

Debugging aides

LogCompilation (Boolean: false)
Log compilation activity in detail to hotspot.log or LogFile. It's in XML, co check out JITWatch, a HotSpot JIT compiler log analisys and visualization tool.

PrintAssembly (Boolean: false)
Print native assembly code after compiles. Requires an external disassembler plugin. also covers related options that enable printing of native methods, stubs, interpreter code, etc., and selective printing using CompileCommand.

Both 32- and 64-bit Windows binaries of a disassembler plugin can be found at the FCML Downloads page

For windows 64-bit VMs a copy of this plugin can be found inside: Graal/Truffle builds.  Copy the library on your path (or side-by-side jvm.dll) to use with other OpenJDK based builds.

PrintAssemblyOptions (String: empty)
Options string for PrintAssembly

PrintCompilation (Boolean: false)

PrintInlining (Boolean: false)
Prints inlining optimizations

PrintIntrinsics (Boolean: false)
prints attempted and successful inlining of intrinsics
This wiki entry has had 8 revisions with contributions from 4 members. (more info)
Online Roquen
« Reply #1 - Posted 2014-02-26 10:29:43 »

Tossed together a small set of options for feedback on organization (like grouping together inline related for instance).  Pretty useless ATM as more detailed descriptions and interactions ideally should be noted.  I can't see any reason to have an exhaustive list here and if GC tuning is desired, it should probably be broken out into different pages.
Pages: [1]
  ignore  |  Print  

Dwinin (60 views)
2015-11-07 13:29:08

Rems19 (73 views)
2015-10-31 01:36:56

Rems19 (65 views)
2015-10-31 01:32:37

williamwoles (102 views)
2015-10-23 10:42:59

williamwoles (89 views)
2015-10-23 10:42:45

Jervac_ (102 views)
2015-10-18 23:29:12

DarkCart (129 views)
2015-10-16 00:58:11

KaiHH (112 views)
2015-10-11 14:10:14

KaiHH (151 views)
2015-10-11 13:26:18

BurntPizza (164 views)
2015-10-08 03:11:46
Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30

Rendering resources
by Roquen
2015-10-15 07:40:48

Math: Inequality properties
by Roquen
2015-10-01 13:30:46

Math: Inequality properties
by Roquen
2015-09-30 16:06:05

HotSpot Options
by Roquen
2015-08-29 11:33:11 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!