-Xms and -Xmx is Virtual Machine (VM) arguments that can be used while executing Java applications to make set the minimum and maximum heap size.
You can know more about all the VM arguments by executing the command in Command-Line or Terminal using java -X command
bash-3.2$ java -X
-Xbatch disable background compilation
-Xbootclasspath/a:
append to end of bootstrap classpath
-Xcheck:jni perform additional checks for JNI functions
-Xcomp forces compilation of methods on the first invocation
-Xdebug provided for backward compatibility
-Xdiag show additional diagnostic messages
-Xfuture enable strictest checks, anticipating future default
-Xint interpreted mode execution-only
-Xinternalversion
displays more detailed JVM version information than the
-version option
-Xloggc: log GC status to a file with time stamps
-Xmixed mixed-mode execution (default)
-Xmn sets the initial and maximum size (in bytes) of the heap
for the young generation (nursery)
-Xms set initial Java heap size
-Xmx set maximum Java heap size
-Xnoclassgc disable class garbage collection
-Xrs reduce the use of OS signals by Java/VM (see documentation)
-Xshare:auto use shared class data if possible (default)
-Xshare:off do not attempt to use shared class data
-Xshare:on require using shared class data, otherwise fail.
-XshowSettings show all settings and continue
These extra options are subject to change without notice.
The following options are Mac OS X specific:
-XstartOnFirstThread
run the main() method on the first (AppKit) thread
-Xdock:name=
override default application name displayed in dock
-Xdock:icon=
override default icon displayed in dock
More Posts related to Java,
- [Fix] java.time.zone.ZoneRulesException: Unknown time-zone ID
- Parse XML file in Java using DOM Parser
- Java equals method - Tutorial
- [Program] How to read three different values using Scanner in Java
- Java: The value of the local variable string is not used
- Display Output in Java Console as a Table
- How to detect Operating System using Java code
- Java 8 Streams map() with examples
- [Fix] java: incompatible types: incompatible parameter types in lambda expression error
- Add newline character Java code example (\r \n \r\n)
- List of Java Major Minor Version Numbers
- IntelliJ Keyboard Shortcut to remove unused imports [Java]
- Java - Check if array contains the value
- [Fix] Java Exception with Lambda - Cannot invoke because object is null
- How to declare and initialize Array in Java Programming
- [Solved] com.sun.xml.ws.transport.http.servlet.WSServletContextListener ClassNotFoundException
- XmlRpcException ConnectException connection refused error
- Create a Zip file using Java Code programmatically
- List of jar files for Jax-ws (SOAP) based Java Web Services
- How to fix Java HTTP java.net.UnknownHostException
- List of jars required for Struts2 project
- [fix] java: incompatible types: double cannot be converted to java.lang.Integer Generics
- Maven BUILD FAILURE: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin
- Get the current timestamp in Java
- java: unclosed string literal [Error]
More Posts:
- Mac - Steam Needs to Be Online to Update. Please confirm your network connection and try again error - News
- Keyboard shortcut to close tab in Notepad++ - NotepadPlusPlus
- Officially Send WhatsApp message using webpage (html) - WhatsApp
- 5 Programming Languages to Learn in the Year 2021 - News
- 🎃 Trending, Popular Halloween hashtags for year 2020 🎃 [Facebook, Twitter, Instagram, Snapchat] - Hashtags
- Eclipse : A java Runtime Environment (JRE) or Java Development kit (JDK) must be available - Java
- [Solved] SharePoint Illegal operation attempted on a registry key that has been marked for deletion - SharePoint
- How to stop disable Facebook video autoplay during scroll - Facebook