如何查看GC 及jvm配置
[@zw_90_156 ~]$ jps
2407 Resin
10104 Resin
7378 Jps
2360 WatchdogManager
6375 start.jar
16762 Resin
10066 WatchdogManager
[@zw_90_156 ~]$ jstat -gcutil 2407 2s
S0 S1 E O P YGC YGCT FGC FGCT GCT
62.50 0.00 85.70 83.57 99.90 1538 6.043 1 0.056 6.099
62.50 0.00 85.71 83.57 99.90 1538 6.043 1 0.056 6.099
62.50 0.00 85.77 83.57 99.90 1538 6.043 1 0.056 6.099
62.50 0.00 85.77 83.57 99.90 1538 6.043 1 0.056 6.099
62.50 0.00 85.83 83.57 99.90 1538 6.043 1 0.056 6.099
62.50 0.00 85.83 83.57 99.90 1538 6.043 1 0.056 6.099
查看FGC参数 如出现1,2,3,4等 则表明在频繁的FGC
JVM_ARGS: "-Xmx1024m -Xss512k -Xms1024m -XX:ParallelGCThreads=2 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:CMSInitiatingOccupancyFraction=80 -Dspring.profiles.active=product -XX:MaxPermSize=128m -XX:PermSize=128m