启动tomcat就会报错

ddsseser 发布于 2016/09/20 18:12
阅读 452
收藏 0
九月 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内存的理论上来说不至于内存不足求大神帮忙解决

加载中
0
求是科技
求是科技

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

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>




0
d
ddsseser

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

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

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>




谢谢您的意见,核实了一下 是ide 的问题 ide编译好之后  直接用tomcat 的startup.bat 启动是可以的
返回顶部
顶部