* Skip to content 
  * [ Accessibility Policy ](https://www.oracle.com/corporate/accessibility/)

[ ](https://www.oracle.com/)

Products  Industries  Resources  Customers  Partners  Developers  Company

Close Search

Search Oracle.com

  * QUICK LINKS 
  * [ Oracle Cloud Infrastructure ](/cloud/)
  * [ Oracle Fusion Cloud Applications ](/applications/)
  * [ Oracle Database ](/database/technologies/)
  * [ Download Java ](/java/technologies/downloads/)
  * [ Careers at Oracle ](/careers/)

Search

[ Country  ![]() ](/countries-list.html#countries)

View Accounts

Back

Cloud Account  [ Sign in to Cloud ](/cloud/sign-in.html) [ Sign Up for Free
Cloud Tier ](/cloud/free/)

Oracle Account

  * [ Sign-In ](https://www.oracle.com/webapps/redirect/signon?nexturl=)
  * [ Create an Account ](https://profile.oracle.com/myprofile/account/create-account.jspx)

  * [ Help ](/corporate/contact/help.html)
  * [ Sign Out ](javascript:sso_sign_out\(\);)

[ Contact Sales  ](/corporate/contact/ "Contact Sales")

[ Menu  Menu  ](/global-menu-v2/)

  * [ Java ](https://www.oracle.com/java/)
  * [ Technical Details ](/java/technologies/)
  * [ Java SE ](/java/technologies/java-se-glance.html)

#  Java HotSpot VM

#####  Java HotSpot VM Options

  * [ At a Glance ](//docs.oracle.com/javase/8/docs/technotes/guides/javaws/ "At a Glance")
  * [ Core ](/java/technologies/javase/javase-core-technologies-apis.html "Core")
  * [ Database ](/java/technologies/javase/javase-tech-database.html "Database")
  * [ Desktop ](/java/technologies/javase/desktop-overview.html "Desktop")

  * [ Accessibility ](/java/technologies/javase/desktop-accessibility.html "Accessibility")
  * [ Security ](/java/technologies/javase/javase-tech-security.html "Security")
  * [ Tools ](/java/technologies/javase/tools-jsp.html "Tools")
  * [ Web Services ](/java/technologies/javase/webservices-jsp.html "Web Services")

  * [ Basic ](/java/technologies/javase/javase-core-technologies-apis.html)
  * [ CORBA ](/java/technologies/core-corba-rmi-iiop.html)
  * [ HotSpot VM ](/java/technologies/javase/javase-core-technologies-apis.html)
  * [ JNDI ](/java/technologies/naming-and-directory-interface.html)

  * [ Mntr-Mgmt ](/java/technologies/javase/javase-core-technologies-apis.html)
  * [ Tools APIs ](/java/technologies/javase/javase-core-technologies-apis.html)
  * [ XML ](/java/technologies/javase/javase-core-technologies-apis.html)

**Please note that this page only applies to JDK 7 and earlier releases. For
JDK 8 please see the[ Windows
](http://docs.oracle.com/javase/8/docs/technotes/tools/windows/java.html) , [
Solaris ](http://docs.oracle.com/javase/8/docs/technotes/tools/unix/java.html)
reference pages. **

This document provides information on typical command-line options and
environment variables that can affect the performance characteristics of the
Java HotSpot Virtual Machine. Unless otherwise noted, all information in this
document pertains to both the Java HotSpot Client VM and the Java HotSpot
Server VM.

####  Categories of Java HotSpot VM Options

Standard options recognized by the Java HotSpot VM are described on the Java
Application Launcher reference pages for [ Windows
](http://docs.oracle.com/javase/7/docs/technotes/tools/windows/java.html) and
Solaris & Linux . This document deals exclusively with non-standard options
recognized by the Java HotSpot VM:

  * Options that begin with ` -X ` are non-standard (not guaranteed to be supported on all VM implementations), and are subject to change without notice in subsequent releases of the JDK. 
  * Options that are specified with ` -XX ` are not stable and are subject to change without notice. 

Users of JDKs older than 1.3.0 who wish to port to a Java HotSpot VM, should
see [ Java HotSpot Equivalents of Exact VM flags
](/java/technologies/javase/exactoptions-jsp.html) .

####  Some Useful -XX Options

Default values are listed for Java SE 6 for Solaris Sparc with -server. Some
options may vary per architecture/OS/JV