Monitoring Java Garbage Collection Using jstat
This article provides a very brief introduction to diagnosing Java performance problems relating to garbage collection.
oracle miscconfigurationintermediate
by OracleDba
16 views
This article provides a very brief introduction to diagnosing Java performance problems relating to garbage collection.
123456789101112131415
$ top
top - 15:52:21 up 104 days, 4:06, 1 user, load average: 1.30, 1.20, 1.13
Tasks: 403 total, 1 running, 402 sleeping, 0 stopped, 0 zombie
Cpu(s): 4.2%us, 0.0%sy, 0.0%ni, 94.7%id, 1.0%wa, 0.0%hi, 0.2%si, 0.0%st
Mem: 74180940k total, 31597888k used, 42583052k free, 2027308k buffers
Swap: 25853944k total, 0k used, 25853944k free, 21455252k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
10263 tomcat 19 0 3475m 2.9g 25m S 99.6 4.1 1407:07 java
5640 root 10 -5 0 0 0 S 0.7 0.0 83:29.19 kjournald
11097 tomcat 15 0 13020 1360 820 R 0.3 0.0 0:00.30 top
1 root 15 0 10364 636 544 S 0.0 0.0 0:05.26 init
2 root RT -5 0 0 0 S 0.0 0.0 1:23.84 migration/0
3 root 34 19 0 0 0 S 0.0 0.0 0:00.13 ksoftirqd/0
4 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/01234567891011
$ ./jstat -gccause 10263 2000
S0 S1 E O P YGC YGCT FGC FGCT GCT LGCC GCC
0.00 0.00 100.00 100.00 78.90 43056 782.341 7931 29130.708 29913.049 Allocation Failure unknown GCCause
0.00 0.00 100.00 100.00 78.90 43056 782.341 7931 29130.708 29913.049 Allocation Failure unknown GCCause
0.00 0.00 70.54 100.00 78.90 43056 782.341 7931 29134.423 29916.764 unknown GCCause No GC
0.00 0.00 99.48 100.00 78.90 43056 782.341 7932 29134.423 29916.764 Allocation Failure unknown GCCause
0.00 0.00 99.48 100.00 78.90 43056 782.341 7932 29134.423 29916.764 Allocation Failure unknown GCCause
0.00 0.00 100.00 99.88 78.90 43056 782.341 7933 29138.241 29920.582 Allocation Failure unknown GCCause
0.00 0.00 100.00 99.88 78.90 43056 782.341 7933 29138.241 29920.582 Allocation Failure unknown GCCause
0.00 0.00 99.85 99.88 78.91 43056 782.341 7934 29141.941 29924.282 Allocation Failure unknown GCCause
$123456789101112131415161718192021
MEM_OPTIONS="-Xms4096M –Xmx4096M"
MEM_OPTIONS="-Xms4096M –Xmx4096M -XX:PermSize=512m -XX:MaxPermSize=512m"
MEM_OPTIONS="-Xms4096M -Xmx4096M -XX:PermSize=512m -XX:MaxPermSize=512m
-XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode"
MEM_OPTIONS="-Xms4096M -Xmx4096M -XX:PermSize=512m -XX:MaxPermSize=512m
-XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode
-XX:+PrintGCDetails -XX:+PrintGCTimeStamps"
MEM_OPTIONS="-Xms4096M -Xmx4096M -XX:PermSize=512m -XX:MaxPermSize=512m
-XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode
-XX:+PrintGCDetails -XX:+PrintGCTimeStamps
-XX:+UseCompressedOops"
MEM_OPTIONS="-Xms4096M -Xmx4096M -XX:PermSize=512m -XX:MaxPermSize=512m
-XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode
-XX:+PrintGCDetails -XX:+PrintGCTimeStamps
-XX:+UseCompressedOops
-XX:NewSize=200m -XX:MaxNewSize=200m"Please to add comments
No comments yet. Be the first to comment!