11
回答
关闭Tomcat(7.0)老出现这样的严重提示,网上搜了100遍也解决不了,求帮助
滴滴云服务器,限时包月0.9元,为开发者而生>>>   
2011-10-14 15:19:39 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/marketservice] 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.
2011-10-14 15:19:39 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/marketservice] appears to have started a thread named [FileWatchdog] but has failed to stop it. This is very likely to create a memory leak.
2011-10-14 15:19:39 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/marketservice] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak.
2011-10-14 15:19:39 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/marketservice] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@fa544b]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@b419dd]) 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. 
2011-10-14 15:19:39 org.apache.coyote.AbstractProtocolHandler stop
信息: Stopping ProtocolHandler ["http-bio-8080"]
2011-10-14 15:19:39 org.apache.coyote.AbstractProtocolHandler stop
信息: Stopping ProtocolHandler ["ajp-bio-8009"]
举报
张睿
发帖于6年前 11回/9K+阅
共有11个答案 最后回答: 4年前
oracle也要用到80端口,tomcat换个端口号试试.
--- 共有 1 条评论 ---
ddatsh这貌似和80一点边也沾不上 网上说的有几种 1.TOMCAT 新版内存管理代码变化引起,2,继承某datasource,写drivermanager 关闭方法, 3.strust2 一个jar包问题 6年前 回复

https://issues.apache.org/jira/browse/DBCP-332

或者写一个应用程序上下文监听器,在contextDestroyed方法中加入如下代码:

DriverManager.deregisterDriver(DriverManager.getDriver(url));

如果你不知道url,那就这样:

Enumeration<Driver> drivers = DriverManager.getDrivers();
while (drivers.hasMoreElements()) {
	Driver driver = drivers.nextElement();
	try {
		DriverManager.deregisterDriver(driver);
		Logger.getLogger(
				this.class.getName())
				.log(Level.INFO,
						String.format("deregistering jdbc driver: %s",
								driver), driver);
	} catch (SQLException e) {
		Logger.getLogger(
				this.class.getName())
				.log(Level.SEVERE,
						String.format("Error deregistering driver %s",
								driver), e);
	}
}

朋友,你当时是怎么解决这个问题的啊,我搜了差不多也有那么多次了,也没用找到解决方案,我也在这里发帖了还是不行,寻个思路呗
顶部