启动tomcat就会报错?报错-问答-阿里云开发者社区-阿里云

开发者社区> 问答> 正文
阿里云
为了无法计算的价值
打开APP
阿里云APP内打开

启动tomcat就会报错?报错

2020-06-09 10:25:42 435 1

九月 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内存的理论上来说不至于内存不足求大神帮忙解决

取消 提交回答
全部回答(1)
  • 爱吃鱼的程序员
    2020-06-09 10:25:59

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

    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>




    0 0
相关问答

1

回答

每次停止tomcat,报错?报错

2020-06-22 22:11:26 319浏览量 回答数 1

1

回答

tomcat 停止时报错?报错

2020-06-22 20:10:45 326浏览量 回答数 1

1

回答

Eclipse与tomcat的配置问题:配置报错 

2020-06-02 14:38:59 336浏览量 回答数 1

1

回答

tomcat 配置强制启用 https ,可是没有效果:配置报错 

2020-06-02 14:43:56 402浏览量 回答数 1

1

回答

多个tomcat配置 cluster 使用组播方式共享session出现session丢失-配置报错

2020-06-02 12:54:40 453浏览量 回答数 1

1

回答

nginx 转发到 tomcat 的 ServerName 配置问题:配置报错 

2020-06-01 11:07:34 460浏览量 回答数 1

1

回答

tomcat和nginx配置请求超时时间:配置报错 

2020-06-01 10:21:51 650浏览量 回答数 1

1

回答

apache+tomcat+jk配置问题:配置报错

2020-06-01 10:17:32 518浏览量 回答数 1

1

回答

在windows环境下做Tomcat + apache + mod_jk 的配置? - 配置报错

2020-05-31 22:48:11 505浏览量 回答数 1

2

回答

在linux上关闭tomcat报错

2018-11-12 11:54:57 2715浏览量 回答数 2
+关注
爱吃鱼的程序员
https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB
文章
问答
问答排行榜
最热
最新
相关电子书
更多
低代码开发师(初级)实战教程
立即下载
阿里巴巴DevOps 最佳实践手册
立即下载
冬季实战营第三期:MySQL数据库进阶实战
立即下载