Java GC (Allocation Failure)

前端 未结 3 1065
故里飘歌
故里飘歌 2020-11-29 18:44

Why always \"GC (Allocation Failure)\"?

Java HotSpot(TM) 64-Bit Server VM (25.25-b02) for linux-amd64 JRE (1.8.0_25-b17),

CommandLi         


        
3条回答
  •  猫巷女王i
    2020-11-29 19:30

    When use CMS GC in jdk1.8 will appeare this error, i change the G1 Gc solve this problem.

     -Xss512k -Xms6g -Xmx6g -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:InitiatingHeapOccupancyPercent=70 -XX:NewRatio=1 -XX:SurvivorRatio=6 -XX:G1ReservePercent=10 -XX:G1HeapRegionSize=32m -XX:ConcGCThreads=6 -Xloggc:gc.log -XX:+HeapDumpOnOutOfMemoryError -XX:+PrintGC -XX:+PrintGCDetails -XX:+PrintGCTimeStamps 
    

提交回复
热议问题