About 1,380,000 results
Open links in new tab
  1. What are the -Xms and -Xmx parameters when starting JVM?

    Feb 7, 2013 · The flag Xmx specifies the maximum memory allocation pool for a Java Virtual Machine (JVM), while Xms specifies the initial memory allocation pool. This means that your …

  2. What does Java option -Xmx stand for? - Stack Overflow

    21 The -Xmx option changes the maximum Heap Space for the VM. java -Xmx1024m means that the VM can allocate a maximum of 1024 MB. In layman terms this means that the application …

  3. What is the default max heap size (-Xmx) in Java 8?

    Sep 30, 2021 · Also Java configuration options (command line parameters) can be "outsourced" to environment variables including the -Xmx, which can change the default (meaning specify a …

  4. java - JVM heap parameters - Stack Overflow

    Jul 8, 2009 · Apart from standard Heap parameters -Xms and -Xmx it's also good to know -XX:PermSize and -XX:MaxPermSize, which is used to specify size of Perm Gen space …

  5. Increase heap size in Java - Stack Overflow

    Mar 22, 2016 · java -Xms4096M -Xmx6144M ClassName The above parameters increase the InitialHeapSize (-Xms) to 4GB (4096 MB) and MaxHeapSize (-Xmx) to 6GB (6144 MB). But, …

  6. How do I set Java's min and max heap size through environment …

    Jun 13, 2021 · You can't do it using environment variables directly. You need to use the set of "non standard" options that are passed to the java command. Run: java -X for details. The …

  7. java - Increasing the JVM maximum heap size for memory …

    I need to run a Java memory intensive application that uses more than 2GB, but I am having problems to increase the heap maximum size. So far, I have tried the following approaches: …

  8. java - How to set the -Xmx when start running a jar file ... - Stack ...

    Nov 22, 2013 · java -Xmx1024m -jar JavaApplication.jar More specifically, the java launcher needs to be used as follows: java [options] -jar file.jar [arguments] [options] are passed to the …

  9. how to increase java heap memory permanently? - Stack Overflow

    Jul 20, 2012 · The Java Virtual Machine takes two command line arguments which set the initial and maximum heap sizes: -Xms and -Xmx. You can add a system environment variable …

  10. How is the default max Java heap size determined?

    If I omit the -Xmx n option from the Java command line then a default value will be used. According to Java documentation "the default value is chosen at runtime based on system …