apiVersion: v1
kind: ConfigMap
metadata:
  name: daytrader-config-jvm
data:
  # cannot set empty jvm.options
  # it is necessary to put here the default values of those knobs that are
  # candidate to be tuned, i.e., the knobs set on thhe search space
  jvm.options: |-
    #-Dcom.sun.management.jmxremote
    #-Dcom.sun.management.jmxremote.authenticate=false
    #-Dcom.sun.management.jmxremote.ssl=false
    #-Dcom.sun.management.jmxremote.local.only=false
    #-Dcom.sun.management.jmxremote.port=1099
    #-Dcom.sun.management.jmxremote.rmi.port=1099
    #-Djava.rmi.server.hostname=127.0.0.1
    -XX:+UseContainerSupport
    -Xgcpolicy:gencon
    -Xtune:virtualized
    # Xms: https://www.eclipse.org/openj9/docs/openj9_defaults/
    -Xms8m
    -Xmx256m
    #-XX:InitialRAMPercentage=25
    #-XX:MaxRAMPercentage=75
    # Xmn: https://www.eclipse.org/openj9/docs/xmn/
    # default 25% Xmx
    #-Xmn96m
    -Xmns2m
    -Xmnx64m
    -XX:SharedCacheHardLimit=32m
    -Xscmx=16m
    #-verbose:gc
    #-Xverbosegclog:/home/daytrader/verbosegc.%Y%m%d.%H%M%S.%pid.txt
