sidebar 隐藏/显示

I decide love you,the time is forever!

工作记录
    <<  jboss-common-jdbc-wrapper.jar bug | 首 页 | 在Windows NT上手动卸载Sybase Server  >>
  • 2004-10-11

    Memory leaks due to JspWriterImpl keeping reference to ServletResponse after recycle()

    版权声明:转载时请以超链接形式标明文章原始出处和作者信息及本声明
    http://debiannotes.blogbus.com/logs/435436.html

    This problem causes severe memory leaks in JBoss app server with Jetty servlet 
    container installed (that is using Jasper). I tested it with JBoss 3.2.6RC1 and 
    Jetty 5.0.0. Please see related bug reports: https://sourceforge.net/tracker/?
    func=detail&aid=973162&group_id=22866&atid=376685 and 
    https://sourceforge.net/tracker/?
    func=detail&aid=1038066&group_id=7322&atid=107322. In short, after JBoss web 
    application context is destroyed, there is still a hard reference chain (see 
    http://kanika.yi.org/~alexei/jbossleaks/refs-from-jasper5-PageContext-pool-to-
    UnifiedClassLoader3.html) from Jasper's pool of JspContexts to JBoss' 
    UnifiedClassLoader3. The most logical place to break the chain is, in my 
    opinion, to set org.apache.jasper.runtime.JspWriterImpl.response field to null 
    inside JspWriterImpl.recycle() method. It looks safe, because JspWriterImpl is 
    always initialized with a new response object before use. And it looks logical, 
    because why should a recycled JspWriter keep reference to a response which it 
    will never make use of, being recycled. In my test instalation, adding 
    
    response = null;
    
    to JspWriterImpl.recycle() resolves the problem.


    ------- Additional Comments From Yoav Shapira 2004-10-05 14:52 -------
    Fixed in Tomcat 5.0 branch, will fix in 5.5 branch after my 11am meeting.  
    Thanks for tracking and reporting this.


    ------- Additional Comments From Yoav Shapira 2004-10-05 16:09 -------
    Fixed.

    历史上的今天:

    sybase xpserver no running as service 2004-10-11
    sybase xpserver no running as service 2004-10-11
    在Windows NT上手动卸载Sybase Server 2004-10-11
    jboss-common-jdbc-wrapper.jar bug 2004-10-11

    随机文章:

    jboss-common-jdbc-wrapper.jar bug 2004-10-11
    Permanent Generation Heap 2004-10-10
    OutOfMemoryException When Redeploying 2004-10-10
    OutOfMemoryExceptions 2004-10-10
    informix常用命令的用法说明 2004-09-14

    收藏到:Del.icio.us




    Tag:JBoss
    引用地址:
    tacy_lee 发表于10:03 | 编辑 | 继续话题 | 转发 | 分享 0
text size: - reset +

个人资料

tacy_lee

日历

搜索

管理

  • 进入后台 写新日志
  • 文章管理 评论管理
  • 更换模板 访问统计

文章分类

    Tag

    • Work_log[45]
    • ORACLE[15]
    • OS[9]
    • Java[9]
    • JBoss[5]
    More..

    最新文章

    • total commander 配置7zip查看各类压缩包
    • 网络路由不正常,小记一下
    • sybase xpserver no running as service
    • sybase xpserver no running as service
    • 在Windows NT上手动卸载Sybase Server
    • Memory leaks due to JspWriterImpl keeping reference to ServletResponse after recycle()
    • jboss-common-jdbc-wrapper.jar bug
    • Permanent Generation Heap
    • OutOfMemoryException When Redeploying
    • OutOfMemoryExceptions
    全部日志>>

    最新评论

    • xell:设置成功,非常感谢!...
    • inuqrsd asczhrvw:epfud uzknolac vkoyzbsjm bmz...
    • 翻译公司:顶!技持原创。
    • sijunlee:不错

    链接

      存档

      • 2007 [1]
      • 2004 [98]
      • RSS 什么是RSS?
        用IM提醒我内容更新
        订阅到QQ邮箱
        订阅到鲜果阅读器
        订阅到Google阅读器
        订阅到抓虾阅读器
      • 《城客》第四期:创意之城
        博客大巴
        博客大巴使用指南
        博客大巴模板中心
        免费注册博客大巴
        一键博客搬家工具
        中文互动杂志城客
      Copyright © 2002-2009 BlogBus.com, All Rights Reserved. 博客大巴 版权所有
      博客大巴模板设计:从容之美 II | 作者: iZ