问题现象:
关闭tomcat 6.0.44时报下面内存泄漏相关的警告:
严重: The web application [/xxx] appears to have started a thread named [MySQL Statement Cancellation Timer] but has failed to stop it. This is very likely to create a memory leak.
2015-10-15 9:06:31 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/xxx] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@3278f]) and a value of type [com.alibaba.druid.wall.spi.WallVisitorUtils.WallTopStatementContext] (value [com.alibaba.druid.wall.spi.WallVisitorUtils$WallTopStatementContext@ae3614]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2015-10-15 9:06:31 org.apache.coyote.http11.Http11AprProtocol destroy
信息: Stopping Coyote HTTP/1.1 on http-9090
2015-10-15 9:06:31 org.apache.coyote.ajp.AjpAprProtocol destroy
信息: Stopping Coyote AJP/1.3 on ajp-9009
导致通过shutdown.bat/sh 无法停止tomcat进程。
原因分析:6.0.24版本起新增了JreMemoryLeakPreventionListener导致的。
尝试屏蔽这个功能:
<!-- Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" / -->
测试了下,没有效果。
又尝试关闭时增加强制命令参数:
call "%EXECUTABLE%" stop -force %CMD_LINE_ARGS%
测试了下,也没有效果。
升级到7.0.6以上的版本,问题可以解决。
不想升级的,可以用6.0.24以下的版本吧!!!
分享到:
相关推荐
Future processors will likely have large on-chip caches with a possibility of dedicating an entire die for on-chip storage in a 3D stacked model. With the ever growing disparity between transistor and...
A 32-bit process is normally limited to addressing 2 gigabytes (GB) of memory, or 3 GB if the system was booted using the /3G boot switch even if there is more physical memory available. By leveraging...
初步了解Axure RP,让你了解他的控件和使用。对于初学者有一定帮助。
This could be for a playable level or a game environment exploration to show off in a portfolio. Planning process is called pre-production and what you end up with is a "Preproduction Blueprint". It...
程序员面试刷题的书哪个好 开了交流群啦,欢迎加入交流心得 QQ群365780609 ...likely to cause a memory leak. 闭包有三个特性: Closures have three characteristics: 1.函数嵌套函数 2.函数内部可以
亚信java笔试题 ...likely to cause a memory leak. 闭包有三个特性: Closures have three characteristics: 1.函数嵌套函数 2.函数内部可以引用外部的参数和变量 3.参数和变量不会被垃圾回收机制回收 Fu
程序员面试刷题的书哪个好 ...likely to cause a memory leak. 闭包有三个特性: Closures have three characteristics: 1.函数嵌套函数 2.函数内部可以引用外部的参数和变量 3.参数和变量不会被垃圾回收机制回收
In this book, I will show you how to create and implement WPF, using best practices to create a realworld application. At the same time, I’ll also show you how to structure and architect a WPF ...
it comprises a number of phases and the final result is likely to be of a certain complexity. A standalone application built using WPF is usually made up of various “components” that are used to ...
organizations and fortunately for developers, there is a very low offering. Traditionally, large volumes of information have been handled by specialized scientists and people with a PhD from the most ...
I confine myself to problems that a programmer is very likely to have to face in her work. Many of these problems and their solutions are so general to the human condition that I will probably seem ...
Fixed a possible memory leak and fault in AcpiExResolveObjectToValue during a read from a buffer or region field. (BZ 458) Fiodor Suietov. Example Code and Data Size: These are the sizes for the OS- ...
It is very likely that there are many errors and that the solutions are wrong. If you have found an error , have a better solution or wish to contribute in some constructive way please send a message...
This project model is not meant to be a tool to justify creating impositions for developers, but as a tool to facilitate coordination. It is meant as a description of the project, with an overview of...
In this article, I will introduce how to use ShaderForge to create a flowing clouds animation. The completed animation will become like this. Let’s start creating this animation and set it so ...
DIRegEx is a library of Delphi (Embarcadero / CodeGear / Borland) components and procedures that implement regular expression pattern matching using the same syntax and semantics as Perl 5.10, with ...
This course is intended for IT Professionals who use Microsoft SharePoint 2010 in a team-based, medium-sized to large environment. While they may have implemented a SharePoint deployment, they have ...
This course is intended for IT Professionals who use Microsoft SharePoint 2010 in a team-based, medium-sized to large environment. While they may have implemented a SharePoint deployment, they have ...
DIRegEx is a library of Delphi (Embarcadero / CodeGear / Borland) components and procedures that implement regular expression pattern matching using the same syntax and semantics as Perl 5.10, with ...
It is very likely that there are many errors and that the solutions are wrong. If you have found an error, have a better solution or wish to contribute in some constructive way please send a message ...