org.springframework.web.util.IntrospectorCleanupListener的用途
来源:互联网 发布:节拍器软件电脑版 编辑:程序博客网 时间:2024/06/05 07:19
1.org.springframework.web.util.IntrospectorCleanupListener一般是在web.xml里面配置的,是为了防止内存泄漏。
2..如果有的框架或程序用到了Introspector类,那么就会启用一个系统级别的缓存,此缓存会存放一些曾加载并分析过的JavaBean的引用
3.当Web服务器关闭时,由于此缓存中存放着这些JavaBean的引用,所以垃圾回收器无法回收Web容器中的JavaBean对象,最后导致内存变大
4.而org.springframework.web.util.IntrospectorCleanupListener就是专门用来处理Introspector内存泄漏问题的辅助类
5.IntrospectorCleanupListener会在Web服务器停止时清理Introspector缓存,使那些Javabean能被垃圾回收器正确回收
6.Spring自身不会出现这种问题,因为Spring在加载并分析完一个类之后会马上刷新JavaBeans Introspector缓存,这就保证Spring中不会出现这种内存泄漏的问题.
7.但有些程序和框架在使用了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
- table边框简单样式
- 7——取近似值
- Java 代码获取spring管理的bean对象
- Rails ActiveRecord 排序
- 【Unity&C#】?:表达式的表达式2和3能否为函数
- org.springframework.web.util.IntrospectorCleanupListener的用途
- angular调试工具-batarang
- Java IO工作机制
- Intent
- 解决Ubuntu 16.04 SSH 无法远程登录问题
- CMake实践二:hello world(v2.0) 第二部分
- 【C++】LeetCode 65. Valid Number
- matlab读取三级文件夹方式
- 笔记-知识图谱入门