org.springframework.web.util.IntrospectorCleanupListener的用途
2017-05-12 10:13
411 查看
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),最后导致内存泄漏
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),最后导致内存泄漏
相关文章推荐
- org.springframework.web.util.IntrospectorCleanupListener的用途
- org.springframework.web.util.IntrospectorCleanupListener的用途
- org.springframework.web.util.IntrospectorCleanupListener监听器的作用
- org.springframework.web.util.IntrospectorCleanupListener
- maven项目启动报java.lang.ClassNotFoundException: org.springframework.web.util.IntrospectorCleanupListener
- org.springframework.web.util.IntrospectorCleanupListener
- java.lang.ClassNotFoundException: org.springframework.web.util.IntrospectorCleanupListener
- org.springframework.web.util.IntrospectorCleanupListener
- java.lang.ClassNotFoundException: org.springframework.web.util.IntrospectorCleanupListener 报错信息
- 运行项目出现java.lang.ClassNotFoundException: org.springframework.web.util.IntrospectorCleanupListener
- Maven项目Eclipse启动时报错: java.lang.ClassNotFoundException: org.springframework.web.util.IntrospectorCleanupListener
- java.lang.ClassNotFoundException: org.springframework.web.util.IntrospectorCleanupListener
- org.springframework.web.util.IntrospectorCleanupListener
- SpringMVC之Web.xml中的org.springframework.web.util.IntrospectorCleanupListener&&内省-反射
- java.lang.ClassNotFoundException: org.springframework.web.util.IntrospectorCleanupListener
- org.springframework.web.util.IntrospectorCleanupListener的作用
- org.springframework.web.util.IntrospectorCleanupListener监听器的作用
- Error configuring application listener of class org.springframework.web.util.IntrospectorCleanupListener
- Error configuring application listener of class org.springframework.web.util.IntrospectorCleanupListener
- org.springframework.web.util.IntrospectorCleanupListener