org.springframework.web.util.IntrospectorCleanupListener
来源:互联网 发布:创维网络电视有黑线条 编辑:程序博客网 时间:2024/05/16 00:47
<listener> <listener-class>org.springframework.web.util.IntrospectorCleanupListener</listener-class></listener>
1、此监听器主要用于解决java.beans.Introspector导致的内存泄漏的问题
2、此监听器应该配置在web.xml中与Spring相关监听器中的第一个位置(也要在ContextLoaderListener的前面)
3、JDK中的java.beans.Introspector类的用途是发现Java类是否符合JavaBean规范如果有的框架或程序用到了Introspector类,那么就会启用一个系统级别的缓存,此缓存会存放一些曾加载并分析过的JavaBean的引用。当Web服务器关闭时,由于此缓存中存放着这些JavaBean的引用,所以垃圾回收器无法回收Web容器中的JavaBean对象,最后导致内存变大。而org.springframework.web.util.IntrospectorCleanupListener就是专门用来处理Introspector内存泄漏问题的辅助类。IntrospectorCleanupListener会在Web服务器停止时清理Introspector缓存,使那些Javabean能被垃圾回收器正确回收。Spring自身不会出现这种问题,因为Spring在加载并分析完一个类之后会马上刷新JavaBeans Introspector缓存,这就保证Spring中不会出现这种内存泄漏的问题。但有些程序和框架在使用了JavaBeans Introspector之后,没有进行清理工作(如Quartz,Struts),最后导致内存泄漏
阅读全文
0 0
- org.springframework.web.util.IntrospectorCleanupListener
- org.springframework.web.util.IntrospectorCleanupListener
- org.springframework.web.util.IntrospectorCleanupListener
- org.springframework.web.util.IntrospectorCleanupListener
- org.springframework.web.util.IntrospectorCleanupListener
- org.springframework.web.util.IntrospectorCleanupListener
- org.springframework.web.util.IntrospectorCleanupListener
- org.springframework.web.util.IntrospectorCleanupListener
- org.springframework.web.util.IntrospectorCleanupListener
- org.springframework.web.util.IntrospectorCleanupListener
- org.springframework.web.util.IntrospectorCleanupListener的用途
- org.springframework.web.util.IntrospectorCleanupListener作用
- org.springframework.web.util.IntrospectorCleanupListener的作用
- org.springframework.web.util.IntrospectorCleanupListener的用途
- org.springframework.web.util.IntrospectorCleanupListener监听器的作用
- org.springframework.web.util.IntrospectorCleanupListener防止内存泄漏
- org.springframework.web.util.IntrospectorCleanupListener监听器的作用
- java.lang.ClassNotFoundException: org.springframework.web.util.IntrospectorCleanupListener
- adb push 失败提示 ‘Read-only file system’
- MSMQ 防火墙 端口 配置
- Makefile多目录下编译通用模板
- POJ 1149 (0-1背包变形)
- js 正则匹配 扣 img 的src
- org.springframework.web.util.IntrospectorCleanupListener
- 谁家的APP狂跌?
- vs depend 命令行查看器
- webstorm 格式化代码及常用快捷键
- Mysql根据in里面的数值排序
- 写给非专业人士看的 Shadowsocks 简介
- 风控之乱:零经验者,跳槽3次,年薪50万 2016-10-20 20:06 来源:一本财经(yibencaijing) 本文经授权转载!感谢原作者的辛勤创作! 金融的核心是什么? 严谨的金融从业者,
- Orcale必备
- poj 3101 Astronomy 分数lcm+大数java