---
timeout: 180
instances: 1
memory: 512M
env:
    SPRING_PROFILES_ACTIVE: cloud
    JAVA_OPTS: -Djava.security.egd=file:///dev/urandom
    JBP_CONFIG_OPEN_JDK_JRE: '[memory_calculator: { memory_sizes: { metaspace: 100m }}]'
applications:
- name: portfolio
  random-route: true
  path: libs/portfolio-${version}.jar
  services: [ traderdb, discovery-service, circuit-breaker-dashboard, config-server ]

---
timeout: 180
instances: 1
memory: 512M
env:
    SPRING_PROFILES_ACTIVE: cloud
    JAVA_OPTS: -Djava.security.egd=file:///dev/urandom
    JBP_CONFIG_OPEN_JDK_JRE: '[memory_calculator: { memory_sizes: { metaspace: 100m }, memory_heuristics: {metaspace: 10, heap: 65, native: 20, permgen: 10, stack: 5}  }]'
applications:
- name: portfolio
  random-route: true
  path: libs/portfolio-${version}.jar
  services: [ traderdb, discovery-service, circuit-breaker-dashboard, config-server ]

Fix OOM at container level issue
Fix OOM at container level issue
