-Xms300M -Xmx300M -XX:MaxDirectMemorySize=200M

    java
    -server
    -Xms300M
    -Xmx300M
    -XX:+PrintGCDetails
    -jar
    app.jar
    —spring.profiles.active=prod

    java
    -Xms300M
    -Xmx300M
    -XX:MaxDirectMemorySize=200M
    -XX:+PrintGCDetails
    -jar
    app.jar
    —spring.profiles.active=prod

    -XX:MaxDirectMemorySize=1M

    java
    -Xms300M
    -Xmx300M
    -XX:MaxDirectMemorySize=200M
    -jar
    app.jar
    —spring.profiles.active=prod

    java
    -server
    -Xms3000M
    -Xmx3000M
    -Xmn2000M
    -XX:MetaspaceSize=128M
    -XX:MaxMetaspaceSize=256M
    -Xss512K
    -XX:SurvivorRatio=8
    -XX:+UseConcMarkSweepGC
    -XX:+UseParNewGC
    -XX:+PrintGCDetails
    -XX:+UseCMSCompactAtFullCollection
    -XX:CMSInitiatingOccupancyFraction=80
    -XX:ParallelGCThreads=8
    -XX:ConcGCThreads=2
    -XX:+CMSParallelRemarkEnabled
    -XX:+CMSScavengeBeforeRemark
    -XX:+ExplicitGCInvokesConcurrent
    -XX:+UseTLAB
    -XX:+ResizeTLAB
    -XX:TLABSize=64K
    -jar
    app.jar
    —spring.profiles.active=prod