gc-Tomcat GC问题,求大神帮忙!

问题描述

Tomcat GC问题,求大神帮忙!
参数配置如下:
-Xms1024m -Xmx1024m -XX:PermSize=256M -XX:MaxPermSize=512M -XX:+PrintGCDateStamps -XX:+PrintGCDetails -Xloggc:D:/Server/Tomcat-7.0.63/logs/tomcat_gc.log -XX:+DisableExplicitGC

然后今天突然出现了频繁的Full GC导致tomcat假死了,GC日志如下,求大神看看应该怎样优化啊?

解决方案

tomcat 加载css问题(求大神讲解)

解决方案二:
出现这个问题的原因是tomcat 7的一个默认配置(JreMemoryLeakPreventionListener)

方法一:可以在JVM启动参数中加入-XX:+DisableExplicitGC来禁止System.gc()。当然这个方法不太好,你也可以用另一种方法:

方法二:
在html中:

Thank you Konstantin and Chris for your attention.

As stated in the initial post:
'We have recently deployed tomcat-6.0.28 in our organization and are
noticing every hour a Full GC is occurring. The same application
same JVM same JVM args just a new tomcat release.'

Using the default JreMemoryLeakPreventionListener configuration that
has 'gcDaemonProtection=true' will result in 1hr FullGCs using Sun
1.6 b18 b20 and b21on Solaris and Windows. We've tested and
successfully 'contained' the FullGC behavior using one of the below
configurations:

1) suppress the FullGC using JVM arg -XX:+DisableExplicitGC

2) keep the FullGC but to defer to the CMS collector using JVM arg
-XX:+ExplicitGCInvokesConcurrent

3) gcDaemonProtection=""false""/>

4) Disable the listener altogether

We've decided to go with option 3.

时间: 2024-08-30 03:29:19

gc-Tomcat GC问题,求大神帮忙!的相关文章

在tomcat上运行没有问题,在weblogic上运行就报下面的错,跪求大神帮忙

问题描述 在tomcat上运行没有问题,在weblogic上运行就报下面的错,跪求大神帮忙 java.sql.SQLException: Statement cancelled, probably by transaction timing out at weblogic.jdbc.wrapper.Statement.postInvocationHandlerNoWrap(Statement.java:128) at weblogic.jdbc.wrapper.PreparedStatement

Myeclipse把tomcat 6.0换成 tomcat 7.0出现这种错误求大神帮忙

问题描述 Myeclipse把tomcat 6.0换成 tomcat 7.0出现这种错误求大神帮忙 org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/eco]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase

spring-maven部署tomcat后running为false,小弟刚接触maven,求大神帮忙看下

问题描述 maven部署tomcat后running为false,小弟刚接触maven,求大神帮忙看下 二月 29, 2016 11:19:13 上午 org.apache.catalina.core.ApplicationContext log INFO: HTMLManager: list: Listing contexts for virtual host 'localhost' 二月 29, 2016 11:19:22 上午 org.apache.catalina.core.Applic

eclipse 经常自动关闭怎么回事?求大神帮忙看看!错误日志如下,万分感谢哦

问题描述 eclipse 经常自动关闭怎么回事?求大神帮忙看看!错误日志如下,万分感谢哦 A fatal error has been detected by the Java Runtime Environment: # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000062140af0, pid=4372, tid=4240 # JRE version: Java(TM) SE Runtime Environment (7.0_7

spring mvc-springmvc配置mysql哪里错了,求大神帮忙

问题描述 springmvc配置mysql哪里错了,求大神帮忙 db.properties: driver=com.mysql.jdbc.Driver url=jdbc:mysql://114.215.207.30:3306busticket?useUnicode=true&characterEncoding=UTF-8 username=PBDB password=PBDB springmvc-servlet.xml: <?xml version="1.0" encod

sqlserver-尝试写了一个 JDBC 操作 SQLServer 的工具类,但是好像有问题,求大神帮忙指正

问题描述 尝试写了一个 JDBC 操作 SQLServer 的工具类,但是好像有问题,求大神帮忙指正 java新人,尝试写了一个 JDBC 操作 SQLServer 的工具类,但是好像有问题,调用 insert 指令没问题,而 select 指令出现如下报错: com.microsoft.sqlserver.jdbc.SQLServerException: ')' 附近有语法错误. at com.microsoft.sqlserver.jdbc.SQLServerException.makeFr

求大神帮忙。。。。。。。

问题描述 求大神帮忙....... if (!string.IsNullOrEmpty(this.adultBW.Text.Trim())){ model.BW = Convert.ToDecimal(this.adultBW.Text.Trim()); } else { model.BW = null; } 有好多个文本框,我怎么能简单的把它写出来......用循环要怎么写呢? 解决方案 启动tomcat的时候总是报错: [ERROR] 2015-12-30 14:45:05 :Context

运行springmvc框架过程中遇到的问题,求大神帮忙!

问题描述 运行springmvc框架过程中遇到的问题,求大神帮忙! 八月 31, 2015 9:28:48 上午 org.apache.catalina.core.ContainerBase startInternal 严重: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start c

调用微信静默授权接口时报错,错误信息如下求大神帮忙看看什么问题

问题描述 调用微信静默授权接口时报错,错误信息如下求大神帮忙看看什么问题 javax.net.ssl.SSLException: java.security.ProviderException: java.security.KeyException at sun.security.ssl.Alerts.getSSLException(Alerts.java:208) at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1916)