GCeas建议:

    -XX:+DisableExplicitGC

    -XX:+HeapDumpOnOutOfMemoryError

    -XX:HeapDumpPath=/data/logs/jvm/saas-file-parse-api/20201220_/heap_dump.hprof

    -XX:InitialHeapSize=2097152000 -XX:MaxHeapSize=2097152000 -XX:MaxNewSize=786432000 -XX:MaxTenuringThreshold=6 -XX:NewSize=786432000 -XX:OldPLABSize=16 -XX:+PrintGC -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:ThreadStackSize=256 -XX:+UseCMSInitiatingOccupancyOnly -XX:+UseCompressedClassPointers -XX:+UseCompressedOops

    -XX:+UseG1GC


    1. -Dspring.profiles.active=pro
    2. -Xms1024m -Xmx1024m
    3. -XX:+HeapDumpOnOutOfMemoryError
    4. -XX:+UseG1GC
    5. -XX:ParallelGCThreads=5
    6. -XX:InitiatingHeapOccupancyPercent=50
    7. -XX:MaxGCPauseMillis=200
    8. -XX:MaxMetaspaceSize=256m
    9. -XX:HeapDumpPath=/data/app/dump
    10. -jar /data/app/ROOT/app.jar