Note that in a docker-compose.yml
file – you’ll need to leave out the double-quotes:
environment:
- JVM_OPTS=-Xmx12g -Xms12g -XX:MaxPermSize=1024m
or
environment:
- CATALINA_OPTS=-Xmx12g -Xms12g -XX:MaxPermSize=1024m
More Related Contents:
- How to specify more than 64 mb memory for an application?
- Object creation on Heap
- Connect to Kafka running in Docker
- How to deal with “java.lang.OutOfMemoryError: Java heap space” error?
- Increase heap size in Java
- Java using much more memory than heap size (or size correctly Docker memory limit)
- How is the default max Java heap size determined?
- Could not reserve enough space for object heap
- Using HeapDumpOnOutOfMemoryError parameter for heap dump for JBoss
- java.lang.OutOfMemoryError: GC overhead limit exceeded [duplicate]
- java.lang.OutOfMemoryError: Java heap space
- Java heap terminology: young, old and permanent generations?
- Java 7 (JDK 7) garbage collection and documentation on G1
- Docker: Combine multiple images
- How to dockerize maven project? and how many ways to accomplish it?
- Setting JVM heap size at runtime
- increase the java heap size permanently?
- How do I analyze a .hprof file?
- Difference between “on-heap” and “off-heap”
- How to build a docker container for a Java application
- Heap space out of memory
- 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?
- How to find the number of objects in the heap
- Clarification of meaning new JVM memory parameters InitialRAMPercentage and MinRAMPercentage
- java.lang.OutOfMemoryError: Java heap space with NetBeans
- Java very large heap sizes [closed]
- how to increase java heap memory permanently?
- how to choose the jvm heap size?