启动tomcat就会报错

发布于 2021-11-27 07:51:21 字数 5026 浏览 882 评论 2

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

无法言说的痛 2021-12-03 15:51:26

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

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

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

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

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

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

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

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

浮生未歇 2021-11-30 04:25:31

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

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

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

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

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

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

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文