在开发过程中,添加完UrlWriter之后,部署到了服务器环境,发生了如下错误
To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
原来Tomcat6会起一个线程检测是否有内存泄露
写道
Ignore those warnings. Tomcat is doing its job right. The actual bug is in someone else's code (the JDBC driver in question), not in yours. Be happy that Tomcat did its job properly and wait until the JDBC driver vendor get it fixed so that you can upgrade the driver.
Downgrade to Tomcat 6.0.23 or older so that you will not be bothered with those warnings. But it will silently keep leaking memory. Not sure if that's good to know after all. Those kind of memory leaks are one of the major causes behind OutOfMemoryError issues during Tomcat hotdeployments.
Move the JDBC driver to Tomcat's /lib folder and have a connection pooled datasource to manage the driver. Note that Tomcat's builtin DBCP does not deregister drivers properly on close. See also bug DBCP-322. The DBCP project is however currently stalling. I wouldn't expect quick updates. You would rather like to replace DBCP by another connection pool which is doing its job better then DBCP. For example BoneCP or Tomcat JDBC Pool maybe?
解决办法有两个
1) 将UrlWirter的Filter从web.xml中去掉或者重写destory方法
2) 将Mysql的驱动包复制一份到Tomcat的Lib目录下
分享到:
相关推荐
To prevent a memory leak, the JDBC Driver has been forcibly unregistered. 十二月 02, 2013 8:19:43 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc SEVERE: The web application [/...
To prevent a memory leak, the JDBC Driver has been forcibly unregistered. ``` 这里,`[web application]`是你的应用名称,`[net.sourceforge.jtds.jdbc.Driver]`是具体的JDBC驱动类名。 解决这个问题有以下...
- The passing of invalid OPC Item IDs caused a memory leak in the driver's global memory. After the global memory was exhausted, the driver crashed. - The writing of strings failed when using ...
A 2 minute timeout has been added to the collection of system information. - Video playback, Hard disk and CD/DVD test 'no operations' error reporting changed. - When BurnInTest crashes, it will ...
Memory leaks occur when a program allocates memory but fails to release it back to the system, causing the application to consume more and more memory over time. This can lead to poor performance and ...
If you attempt to access a reserved address that has not yet been committed (backed by memory or disk) you will cause an access violation. Committed Memory Committed pages are those pages that when ...
为了解决这一问题,一种有效的技术应运而生,那就是Dropout。 Dropout由Hinton等人在2014年提出,是一种正则化策略,它通过在训练过程中随机“丢弃”(或设置为零)一部分神经元来防止网络中的节点过于依赖彼此,...
ACPI_OPERAND_OBJECT has been manually optimized to be aligned and will not work if it is byte-packed. Example Code and Data Size: These are the sizes for the OS- independent acpica.lib produced by ...
Up until now, the FreeBSD project has released a number of described techniques to do different parts of work. However, a project model summarising how the project is structured is needed because of ...
.- Reduced the line sleep to 30 (tell me if this value doesn‘t work for you).27/4/981.7.0- Fixed a memory leak, thanks to Don Higgins.- Moved the string esErrorInFormatOfMsg to a property of SakPOP.-...
This means that you do not worry about corrupting Excel files, this product has been tested repeatedly by the team and has the best data access strategies used to prevent any damage to files....
* A test helper has been introduced to optimize preparation of test repositories with many simple commits, and a handful of test scripts have been updated to use it. Fixes since v2.22 -----------...
This release has been updated to fix three issues: Update to fix a conflict between the Ajax Control Toolkit and jQuery/jQuery UI. Update to the ToolkitScriptManager to prevent an error that resulted ...
- 输出:2x2A @ 24V 低/高压电磁阀控制输出 通过以上分析可以看出,便携式测试控制器不仅具备出色的性能和技术规格,还拥有广泛的适用范围和高度的灵活性,是航空航天和汽车测试领域不可或缺的重要工具。
The Nexus Memory Manager helps prevent this by using a multi stage allocation system which preallocatessmall chunks of memory and leases parts of them to the application, whenever required. Inaddition...
• Before turning on the power, make sure the power supply voltage has been set according to the local voltage standard. • Before using the product, please verify that all cables and power ...
attempt to prevent the use of overwritten heap headers to do arbitrary byte writing. This method of exploiting heap overflows, and the protection offered by service pack 2, is widely known and has ...
Common System and Software Testing Pitfalls How to Prevent and Mitigate Them 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除
解决Adding 'enum value' will prevent the debug session from continuing.zip
WebRTC防止泄漏版本1.0.14 | 2018年5月9日WebRTC Leak Prevent提供了对Chromium中没有本机GUI的WebRTC隐私设置的用户控制。 该扩展的预期用途是防止。 唯一需要的权限是“隐私”和“存储”。这个怎么运作在Chromium...