A sudden 10-second pause in both business and GC threads within a Spring Boot Java application that has been stably running for a year with daily restarts is indeed unusual.
If GC logs show no Full GC or Mixed GC events during the pause .
All GC logs and business logs are frozen, showing that the threads have stopped.envrioment are here.
os:centos7.9jdk:jdk1.8.0_131gc config: -Xms16g -Xmx16g -XX:PermSize=256m -XX:MaxPermSize=320m -XX:+UseG1GC -XX:G1ReservePercent=25 -XX:InitiatingHeapOccupancyPercent=30 -XX:SoftRefLRUPolicyMSPerMB=0 -XX:+DisableExplicitGC-verbose:gc -Xloggc:${MIDDLEWARE_LOGS}/gc.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCApplicationStoppedTime-XX:+PrintAdaptiveSizePolicy-XX:+UseGCLogFileRotation-XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=100m -XX:-OmitStackTraceInFastThrow -XX:+AlwaysPreTouch -XX:MaxDirectMemorySize=2g -XX:-UseLargePages -XX:-UseBiasedLocking
pause time is 18:20:42->18:21:03,below is some monitors pic.
Can you give some suggestions? What are the specific reasons?