Run the JVM with -XX:MaxHeapSize=512m
(or any big number as you need) (or -Xmx512m
for short)
More Related Contents:
- How to deal with “java.lang.OutOfMemoryError: Java heap space” error?
- Java heap terminology: young, old and permanent generations?
- Setting JVM heap size at runtime
- How does the JVM ensure that System.identityHashCode() will never change?
- What is the largest possible heap size with a 64-bit JVM?
- Java Refuses to Start – Could not reserve enough space for object heap
- Understanding max JVM heap size – 32bit vs 64bit
- Encourage the JVM to GC rather than grow the heap?
- Why a sawtooth shaped graph?
- how to increase java heap memory permanently?
- how to choose the jvm heap size?
- Integers caching in Java [duplicate]
- How does the JVM decided to JIT-compile a method (categorize a method as “hot”)?
- Is a Java array of primitives stored in stack or heap?
- Can the JVM recover from an OutOfMemoryError without a restart
- Increasing the JVM maximum heap size for memory intensive applications
- How do I find out what keystore my JVM is using?
- Error launching Android Studio: Failed to create JVM: error code-6
- When does the main thread stop in Java?
- try with resources introduce unreachable bytecode
- When will JVM use intrinsics
- 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?
- Is it possible to use sun.misc.Unsafe to call C functions without JNI?
- How do I use the JAVA_OPTS environment variable?
- effect of changing String using reflection