0

我正在使用 openShift/jbossews(tomcat-7) 和 spring 4.x & 用于使用 tomcat JNDI 数据源配置的 Oracle 11g(ojdbc6-11.2.0.jar) 数据库连接。

当我尝试在应用程序中使用 CI(jenkin build) 重新部署代码(war) 时,一些 Oracle 类会在服务器日志中提供内存泄漏通知。

有没有人遇到过这种类型的问题,请帮我清除这个严重的错误。我能做些什么来清理这些吗?

Openshift Tomcat 服务器日志:-

Sep 30, 2015 1:35:12 AM org.apache.catalina.core.StandardService startInternal
    INFO: Starting service Catalina
    Sep 30, 2015 1:35:12 AM org.apache.catalina.core.StandardEngine startInternal
    INFO: Starting Servlet Engine: Apache Tomcat/7.0.54
    Sep 30, 2015 1:35:13 AM org.apache.catalina.startup.HostConfig deployWAR
    INFO: Deploying web application archive /var/lib/openshift/546d3268d14ee9564d002626/app-root/runtime/dependencies/jbossews/webapps/ROOT.war
    Sep 30, 2015 1:35:34 AM org.apache.tomcat.jdbc.pool.DataSourceFactory performJNDILookup
    WARNING: The name "jdbc/DMDataSource" can not be found in the InitialContext.
    log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
    log4j:WARN Please initialize the log4j system properly.
    Sep 30, 2015 1:35:36 AM org.apache.catalina.core.StandardContext startInternal
    SEVERE: Error listenerStart
    Sep 30, 2015 1:35:36 AM org.apache.catalina.core.StandardContext startInternal
    SEVERE: Context [] startup failed due to previous errors
    Sep 30, 2015 1:35:36 AM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
    SEVERE: The web application [] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@cf69687]) and a value of type [java.lang.Class] (value [class oracle.sql.AnyDataFactory]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
    Sep 30, 2015 1:35:36 AM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
    SEVERE: The web application [] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@11147fb7]) and a value of type [java.lang.Class] (value [class oracle.sql.TypeDescriptorFactory]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
    Sep 30, 2015 1:35:36 AM org.apache.catalina.startup.HostConfig deployWAR
    INFO: Deployment of web application archive /var/lib/openshift/546d3268d14ee9564d002626/app-root/runtime/dependencies/jbossews/webapps/ROOT.war has finished in 23,890 ms
    Sep 30, 2015 1:35:36 AM org.apache.coyote.AbstractProtocol start
    INFO: Starting ProtocolHandler ["http-bio-127.3.183.129-8080"]
    Sep 30, 2015 1:35:36 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 24114 ms
4

0 回答 0