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

ZIP inflater/deflater performance

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 7
    • 1.4.2_10, 7
    • core-libs
    • b138
    • x86
    • linux_ubuntu, windows_xp
    • 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

                sherman Xueming Shen
                duke J. Duke
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: