When starting the JVM, two parameters can be adjusted to suit your memory needs :
-Xms<size>
specifies the initial Java heap size and
-Xmx<size>
the maximum Java heap size.
More Related Contents:
- How can I tell if I’m running in 64-bit JVM or 32-bit JVM (from within a program)?
- How to see JIT-compiled code in JVM?
- How to activate JMX on my JVM for access with jconsole?
- Getting Java version at runtime
- How does the JVM decided to JIT-compile a method (categorize a method as “hot”)?
- Can the JVM recover from an OutOfMemoryError without a restart
- Increasing the JVM maximum heap size for memory intensive applications
- How to find the JVM version from a program?
- How to tune Tomcat 5.5 JVM Memory settings without using the configuration program
- How do I find out what keystore my JVM is using?
- Error launching Android Studio: Failed to create JVM: error code-6
- JVM option -Xss – What does it do exactly?
- When does the main thread stop in Java?
- JFrame.dispose() vs System.exit()
- What is the JVM thread scheduling algorithm?
- try with resources introduce unreachable bytecode
- When will JVM use intrinsics
- Setting JVM/JRE to use Windows Proxy Automatically
- Size of Huge Objects directly allocated to Old Generation
- Would Java inline method(s) during optimization?
- Java VM: reproducible SIGSEGV on both 1.6.0_17 and 1.6.0_18, how to report?
- How to set timezone to UTC in Apache Spark?
- Why defining class as final improves JVM performance?
- What is the default maximum heap size for Sun’s JVM from Java SE 6?
- Why is there no GIL in the Java Virtual Machine? Why does Python need one so bad?
- Java’s “os.name” for Windows 10?
- How does the JVM terminate daemon threads? or How to write daemon threads that terminate gracefully
- Is it possible to use sun.misc.Unsafe to call C functions without JNI?
- JVM_FindSignal function continuously allocates native memory
- Is *this* really the best way to start a second JVM from Java code?