Uploaded image for project: 'Crucible'
  1. Crucible
  2. CRUC-3670

Upgrade Jetty >= 6.1.23

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 2.4-M2, 2.4.0
    • None
    • None

    Description

      Bug in Jetty can cause OOME - java.lang.OutOfMemoryError: requested 239288 bytes for Chunk::new. Out of swap space?

      Native heap is leaked by the JVM if you do not explicitly close of gzip streams. Jetty has this outstanding bug which shows it is affected by this problem:

      The stack trace shows:

      Caused by: java.lang.OutOfMemoryError
      	at java.util.zip.Deflater.init(Native Method)
      	at java.util.zip.Deflater.<init>(Deflater.java:123)
      	at java.util.zip.GZIPOutputStream.<init>(GZIPOutputStream.java:46)
      	at org.mortbay.servlet.GzipFilter$GzipStream.doGzip(GzipFilter.java:481)
      	at org.mortbay.servlet.GzipFilter$GzipStream.<init>(GzipFilter.java:373)
      	at org.mortbay.servlet.jetty.IncludableGzipFilter$IncludableGzipStream.<init>(IncludableGzipFilter.java:62)
      	at org.mortbay.servlet.jetty.IncludableGzipFilter$IncludableResponseWrapper.newGzipStream(IncludableGzipFilter.java:53)
      	at org.mortbay.servlet.GzipFilter$GZIPResponseWrapper.getOutputStream(GzipFilter.java:297)
      	at javax.servlet.ServletResponseWrapper.getOutputStream(ServletResponseWrapper.java:112)
      	at com.cenqua.fisheye.web.CommitActivityChartAction.processChart(CommitActivityChartAction.java:158)

      We should try and work around it, or upgrade to a later version of Jetty if its fixed there.

      Attachments

        Activity

          People

            npellow Nick
            andrew.myers Andrew Myers [Atlassian]
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 16h Original Estimate - 16h
                16h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 17h 20m
                17h 20m