开发者社区 问答 正文

启动tomcat就会报错?报错

九月 20, 2016 5:54:27 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [/jeecg] registered the JDBC driver [com.alibaba.druid.proxy.DruidDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
九月 20, 2016 5:54:27 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [/jeecg] registered the JDBC driver [oracle.jdbc.driver.OracleDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
九月 20, 2016 5:54:27 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/jeecg] appears to have started a thread named [net.sf.ehcache.CacheManager@446f0759] but has failed to stop it. This is very likely to create a memory leak.
九月 20, 2016 5:54:27 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/jeecg] appears to have started a thread named [Replication Thread] but has failed to stop it. This is very likely to create a memory leak.
九月 20, 2016 5:54:27 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/jeecg] appears to have started a thread named [Replication Thread] but has failed to stop it. This is very likely to create a memory leak.
九月 20, 2016 5:54:27 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/jeecg] appears to have started a thread named [dictCache.data] but has failed to stop it. This is very likely to create a memory leak.
九月 20, 2016 5:54:27 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/jeecg] appears to have started a thread named [eternalCache.data] but has failed to stop it. This is very likely to create a memory leak.
九月 20, 2016 5:54:27 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/jeecg] appears to have started a thread named [schedulerFactory_Worker-1] but has failed to stop it. This is very likely to create a memory leak.
九月 20, 2016 5:54:27 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/jeecg] appears to have started a thread named [schedulerFactory_Worker-2] but has failed to stop it. This is very likely to create a memory leak.
九月 20, 2016 5:54:27 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/jeecg] appears to have started a thread named [schedulerFactory_Worker-4] but has failed to stop it. This is very likely to create a memory leak.
九月 20, 2016 5:54:27 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/jeecg] appears to have started a thread named [schedulerFactory_Worker-5] but has failed to stop it. This is very likely to create a memory leak.
九月 20, 2016 5:54:27 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/jeecg] appears to have started a thread named [schedulerFactory_Worker-6] but has failed to stop it. This is very likely to create a memory leak.
九月 20, 2016 5:54:27 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/jeecg] appears to have started a thread named [schedulerFactory_Worker-7] but has failed to stop it. This is very likely to create a memory leak.
九月 20, 2016 5:54:27 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/jeecg] appears to have started a thread named [schedulerFactory_Worker-8] but has failed to stop it. This is very likely to create a memory leak.
九月 20, 2016 5:54:27 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/jeecg] appears to have started a thread named [schedulerFactory_Worker-9] but has failed to stop it. This is very likely to create a memory leak.
九月 20, 2016 5:54:27 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/jeecg] appears to have started a thread named [schedulerFactory_Worker-10] but has failed to stop it. This is very likely to create a memory leak.
九月 20, 2016 5:54:27 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads

SEVERE: The web application [/jeecg] appears to have started a thread named [cycleTestThread] but has failed to stop it. This is very likely to create a memory leak.

以上是运行时报的错误,找了很多 都是说是 内存溢出 修改 eclipse.ini

-Xms40m
-Xmx1024m

tomcat 

-xx:PermSize=64m  -xx:maxpermSize=1024m

都是内存溢出   我使用的电脑是6G内存的理论上来说不至于内存不足求大神帮忙解决

展开
收起
爱吃鱼的程序员 2020-06-09 10:25:42 866 分享 版权
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    遇到过这种问题,还不止一次,解决办法

    1.先将tomcat空跑起来,确定没问题后

    2.在将app.war包放入tomcat,启动,成功后

    3.重启ide,删掉tomcat,重新部署tomcat进来,在部署项目到tomcat上,就可以了

    4.有一次我重启电脑解决的

    你的这个是注册jdbcdriver的问题,是不是没有指定driver

    <beanid="masterDataSource"class="com.alibaba.druid.pool.DruidDataSource"init-method="init"destroy-method="close"><propertyname="driverClassName"value="${driverClassName}"></property><propertyname="url"value="${master_jdbc_url}"></property><propertyname="username"value="${master_jdbc_username}"></property><propertyname="password"value="${master_jdbc_password}"></property></bean>




    引用来自“求是科技”的评论

    遇到过这种问题,还不止一次,解决办法

    1.先将tomcat空跑起来,确定没问题后

    2.在将app.war包放入tomcat,启动,成功后

    3.重启ide,删掉tomcat,重新部署tomcat进来,在部署项目到tomcat上,就可以了

    4.有一次我重启电脑解决的

    你的这个是注册jdbcdriver的问题,是不是没有指定driver

    <beanid="masterDataSource"class="com.alibaba.druid.pool.DruidDataSource"init-method="init"destroy-method="close"><propertyname="driverClassName"value="${driverClassName}"></property><propertyname="url"value="${master_jdbc_url}"></property><propertyname="username"value="${master_jdbc_username}"></property><propertyname="password"value="${master_jdbc_password}"></property></bean>




    2020-06-09 10:25:59
    赞同 展开评论