日期:2014-05-16 浏览次数:20897 次
-Xms1800M -Xmx1800M -Xmn600M -Xss512K -XX:PermSize=300M -XX:MaxPermSize=300M -XX:SurvivorRatio=5000 -XX:MaxTenuringThreshold=0 -Xnoclassgc -XX:+DisableExplicitGC -XX:+UseParNewGC -XX:+PrintClassHistogram -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC -Xloggc:/usr/local/apache/htdocs/SoapMmsService/logs/gc.log
Heap par new generation total 614336K, used 614259K [0x44920000, 0x6a120000, 0x6a120000) eden space 614272K, 99% used [0x44920000, 0x6a0fccc0, 0x6a100000) from space 64K, 0% used [0x6a100000, 0x6a100000, 0x6a110000) to space 64K, 0% used [0x6a110000, 0x6a110000, 0x6a120000) tenured generation total 1228800K, used 0K [0x6a120000, 0xb5120000, 0xb5120000) the space 1228800K, 0% used [0x6a120000, 0x6a120000, 0x6a120200, 0xb5120000) compacting perm gen total 307200K, used 4372K [0xb5120000, 0xc7d20000, 0xc7d20000) the space 307200K, 1% used [0xb5120000, 0xb55650c8, 0xb5565200, 0xc7d20000) 0.000: [ParNew: 614259K->0K(614336K), 0.3373210 secs] 614259K->25531K(1843136K) Heap after GC invocations=1:
Heap
par new generation total 614336K, used 0K [0x44920000, 0x6a120000, 0x6a120000)
eden space 614272K, 0% used [0x44920000, 0x44920000, 0x6a100000)
from space 64K, 0% used [0x6a110000, 0x6a110000, 0x6a120000)
to space 64K, 0% used [0x6a100000, 0x6a100000, 0x6a110000)
tenured generation total 1228800K, used 25531K [0x6a120000, 0xb5120000, 0xb5120000)
the space 1228800K, 2% used [0x6a120000, 0x6ba0ee10, 0x6ba0f000, 0xb5120000)
compacting perm gen total 307200K, used 4372K [0xb5120000, 0xc7d20000, 0xc7d20000)
the space 307200K, 1% used [0xb5120000, 0xb55650c8, 0xb5565200, 0xc7d20000)
} , 0.3374670 secs]
1060.498: [GC {Heap before GC invocations=1:
cd /usr/local/apache/htdocs/SoapMmsService/logs
more gc.log | grep "eden space" > test.log
content=`sed -n '$'p test.log`
percent=`sed -n '$'p test.log | awk '{print $4}' | awk -F% '{print $1}'`
echo $percent
base=0
echo $base
maxcount=98
if test $percent -gt $base; then
if test $percent -lt $maxcount; then
echo "test"
wget "http://127.0.0.1:6666/control" >tmp
fi
fi