Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6751338

ZIP inflater/deflater performance

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 1.4.2_10, 7
    • Fix Version/s: 7
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b138
    • CPU:
      x86
    • OS:
      linux_ubuntu, windows_xp
    • Verification:
      Verified

      Backports

        Description

        Dear all,

        This is a snippet from the correspondence with SAP, who run into severe performance issues with JDK 1.4.2_10. No improvement has been observed with the recent release of JDK 1.4.2_18.
        ------------------------------------------------------------------------------------------------------
        In our BI application we have massive performance problems
        because of java.util.zip.Deflater and Inflater. A lot of customer
        cases and also several escalations resulted from this.

        The problem is similar to that described in SUN bugid 6364346
        and can be simply reproduced with the attached test program.

        Just call: java -Xms1024M -Xmx1024M Bench test.htm

        With 1.4.2_09 the performance is excellent, with later patch releases
        it's horrible.

        Following you see the results on my desktop PC:

        C:\tmp\java\Deflater>\java\jdk1.4.2_09\bin\java -server -showversion
        -Xms1024M -
        Xmx1024M Bench test.htm
        java version "1.4.2_09"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_09-b05)
        Java HotSpot(TM) Server VM (build 1.4.2_09-b05, mixed mode)

        Original length: 46932100 bytes
        Deflated length: 2026929 bytes
        Inflated length: 46932100 bytes

        Duration of Deflate (in ms): 1390
        Duration of Inflate (in ms): 3063

        C:\tmp\java\Deflater>java -server -showversion -Xms1024M -Xmx1024M Bench
         test.ht
        m
        java version "1.4.2_18"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_18-b06)
        Java HotSpot(TM) Server VM (build 1.4.2_18-b06, mixed mode)

        Original length: 46932100 bytes
        Deflated length: 2026929 bytes
        Inflated length: 46932100 bytes

        Duration of Deflate (in ms): 2602891
        Duration of Inflate (in ms): 2421922

        C:\tmp\java\Deflater>\java\jdk1.4.2_10\bin\java -server -showversion
        -Xms1024M -
        Xmx1024M Bench test.htm
        java version "1.4.2_10"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-b03)
        Java HotSpot(TM) Server VM (build 1.4.2_10-b03, mixed mode)

        Original length: 46932100 bytes
        Deflated length: 2026929 bytes
        Inflated length: 46932100 bytes

        Duration of Deflate (in ms): 8056797
        Duration of Inflate (in ms): 7869140
        ------------------------------------------------------------------------------------------------------

        I've included a test case provided by SAP to this report. Please handle this case with high
        priority because as mentioned above it has big impact at customer side.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  sherman Xueming Shen
                  Reporter:
                  duke J. Duke (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: