The -Xmixed flag enables mixed mode execution, i.e. both interpreted and
compiled. This is the default.
In mixed mode, methods are initially run in interpreted mode. Methods that
are repeatedly invoked may be converted to native code and thereafter run in
compiled mode for better performance.
Applications do not need to specify this flag because it is the default.
Nevertheless the flag can be useful in shell scripts where a Java command line
is generated programmatically. If an earlier part of the script has added either
-Xcomp or -Xint to the command line, then the command can be reverted back
to mixed mode by appending -Xmixed. This works because later arguments on
the command line take precedence.
-Xmixed is on by default.
-Xmixed should not be used with either -Xcomp or -Xint because they are
contradictory. However, no error is thrown if two or more of these options are
used. The last parameter on the command line determines the actual mode used.
For example if the following command is run:
java -Xcomp -Xint -Xmixed
then the JVM shall run in mixed mode.
Arguments Related to -Xmixed:
TODO: link to -Xbatch, -Xcomp, -Xint
If you have additional comments, interesting experiences or even point of disagreement with this JVM argument description, please leave a comment. Your
insights will help the entire 10+ million java developer community to develop
one standard source of documentation for all the JVM arguments.