Java8&Tomact8.12无项目部署自动关闭
黎某人 2014-09-08 02:20:21 之前出了个问题,项目部署后每过一段时间就自动关闭了,这次我部署了一个空的tomcat,里面没有任何项目,但是过了一会后还是自动关闭了, 我开启了GClog,最后打印的结果如下:
1.283: Total time for which application threads were stopped: 0.0003665 seconds
3.284: Total time for which application threads were stopped: 0.0001949 seconds
4.095: Total time for which application threads were stopped: 0.0003643 seconds
45.100: Total time for which application threads were stopped: 0.0001699 seconds
46.101: Total time for which application threads were stopped: 0.0001638 seconds
87.106: Total time for which application threads were stopped: 0.0001506 seconds
88.106: Total time for which application threads were stopped: 0.0001882 seconds
111.109: Total time for which application threads were stopped: 0.0002320 seconds
378.140: Total time for which application threads were stopped: 0.0002724 seconds
506.155: Total time for which application threads were stopped: 0.0002237 seconds
900.201: Total time for which application threads were stopped: 0.0002847 seconds
932.205: Total time for which application threads were stopped: 0.0002618 seconds
1672.289: Total time for which application threads were stopped: 0.0002145 seconds
1796.303: Total time for which application threads were stopped: 0.0001517 seconds
1799.303: Total time for which application threads were stopped: 0.0001910 seconds
1921.318: Total time for which application threads were stopped: 0.0002199 seconds
2287.362: Total time for which application threads were stopped: 0.0001614 seconds
08-Sep-2014 14:13:43.326 INFO [Thread-4] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-20000"]
2388.357: Total time for which application threads were stopped: 0.0004979 seconds
08-Sep-2014 14:13:43.338 INFO [Thread-4] org.apache.catalina.core.StandardService.stopInternal Stopping service Catalina
08-Sep-2014 14:13:43.341 INFO [Thread-4] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-20000"]
08-Sep-2014 14:13:43.343 INFO [Thread-4] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-20000"]
2388.375: Total time for which application threads were stopped: 0.0002124 seconds
Heap
par new generation total 1310720K, used 356527K [0x0000000080000000, 0x00000000e0000000, 0x00000000e0000000)
eden space 1048576K, 34% used [0x0000000080000000, 0x0000000095c2bcc8, 0x00000000c0000000)
from space 262144K, 0% used [0x00000000c0000000, 0x00000000c0000000, 0x00000000d0000000)
to space 262144K, 0% used [0x00000000d0000000, 0x00000000d0000000, 0x00000000e0000000)
concurrent mark-sweep generation total 524288K, used 0K [0x00000000e0000000, 0x0000000100000000, 0x0000000100000000)
Metaspace used 10042K, capacity 10222K, committed 10496K, reserved 1058816K
class space used 1129K, capacity 1197K, committed 1280K, reserved 1048576K
catalina.sh的Java-Opts如下:
JAVA_OPTS="-server -Xms2048m -Xmx2048m -Xmn1536m -Xss256k -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCApplicationStoppedTime"
JAVA_OPTS="$JAVA_OPTS -XX:NewRatio=4 -XX:SurvivorRatio=4 -XX:MaxTenuringThreshold=0"
JAVA_OPTS="$JAVA_OPTS -XX:+UseConcMarkSweepGC"
机器4G内存,求助,莫名其妙啊