glassfish
  1. glassfish
  2. GLASSFISH-6514

Degradation in performance with SSL Mode

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: V3
    • Fix Version/s: V3
    • Component/s: web_container
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      6,514
    • Status Whiteboard:
      Hide

      gfv3-prelude-included

      Show
      gfv3-prelude-included

      Description

      When running a web application called NileBookStore on B28 using SSL Mode (HTTPS
      port 8181), noticing a degradation in performance compared to the run without
      SSL Mode (HTTP port 8080). Here's the comparison between the two.

      Nilebookstore with HTTPS mode
      *******************************
      Ave RT => Ranges from 199 to 259 seconds.
      CPU usage for appserver process using top => ~ 126 % (> 100%)

      Nilebookstore with HTTP mode
      ******************************
      Ave RT => 4.90 seconds.
      CPU usage for appserver process using top => 30-40%

      The run with SSL Mode is still going on if development want to take a look at
      the system.

        Activity

        Hide
        meenap added a comment -

        Here's the final report between HTTP and HTTPS

        HTTP Mode
        **********
        Total Number of Silkperformer transactions = 5,232,529
        Ave Number of Transactions / Sec = 20.19
        Ave Throughput[kb] / Sec = 903.89
        Ave Number of hits / Sec = 484.47
        Ave Response Time / Transaction = 4.90
        Client Errors = 0

        Detailed Client Report with graph is at:
        http://server-rel.red.iplanet.com/h/qesol2/vol2/bigapps-logs/GlassfishV3/nilebookstore/build28/rh5.1/silk-silkperf2/v3-b28-nilebookstore-rh51.htm

        HTTPS Mode
        ***********
        Total Number of Silkperformer transactions = 165,533
        Ave Number of Transactions / Sec = 0.64
        Ave Throughput[kb] / Sec = 26.21
        Ave Number of hits / Sec = 14.20
        Ave Response Time / Transaction = 151.35
        Client Errors = 195,105

        Detailed client report with graph is at:
        http://server-rel.red.iplanet.com/h/qesol2/vol2/bigapps-logs/GlassfishV3/nilebookstore-ssl/build28/rh5.1/silk-silkperf2/v3-b28-nilebookstore-ssl-rh51.html

        Jeanfrancois, please let me know how I can determine the time it takes for the
        initial handshake between the client and server ?

        Show
        meenap added a comment - Here's the final report between HTTP and HTTPS HTTP Mode ********** Total Number of Silkperformer transactions = 5,232,529 Ave Number of Transactions / Sec = 20.19 Ave Throughput [kb] / Sec = 903.89 Ave Number of hits / Sec = 484.47 Ave Response Time / Transaction = 4.90 Client Errors = 0 Detailed Client Report with graph is at: http://server-rel.red.iplanet.com/h/qesol2/vol2/bigapps-logs/GlassfishV3/nilebookstore/build28/rh5.1/silk-silkperf2/v3-b28-nilebookstore-rh51.htm HTTPS Mode *********** Total Number of Silkperformer transactions = 165,533 Ave Number of Transactions / Sec = 0.64 Ave Throughput [kb] / Sec = 26.21 Ave Number of hits / Sec = 14.20 Ave Response Time / Transaction = 151.35 Client Errors = 195,105 Detailed client report with graph is at: http://server-rel.red.iplanet.com/h/qesol2/vol2/bigapps-logs/GlassfishV3/nilebookstore-ssl/build28/rh5.1/silk-silkperf2/v3-b28-nilebookstore-ssl-rh51.html Jeanfrancois, please let me know how I can determine the time it takes for the initial handshake between the client and server ?
        Hide
        jfarcand added a comment -

        Hi Meena, can you cut&paste the http status code returned by GlassFish when an
        error happens? Thanks!

        Show
        jfarcand added a comment - Hi Meena, can you cut&paste the http status code returned by GlassFish when an error happens? Thanks!
        Hide
        meenap added a comment -

        As per bug discussion and plan, restarted this test on B28a with enabling error
        logging on client. After all the 100 users loaded, the ave response time per
        transaction was still high at around 43.66 to 92 seconds and at 10 mins, it
        ranges from 93 to 114 seconds.

        Within 10 mins, there were already about 44 client errors. I have stopped the
        run to collect the error reports and will restart it to run overnight.

        This is a snapshot of what the error report states for User 26:

        Message(1,Security):

        { Transaction : TMAIN, line: 37, call: 4 Time : 23:06:25 Severity : error Internal Error : 10 Native Error : 0 Message : WebPageUrl(Security: 10 - SSL connection failed, SSLConnect) }

        Message(2,HTTP):

        { Transaction : TMAIN, line: 44, call: 4 Time : 23:06:31 Severity : error Internal Error : 1060 Native Error : 0 Message : WebPageLink(HTTP: 1060 - HTML Hyperlink not found., "browse_button") }

        Message(3,HTTP):

        { Transaction : TMAIN, line: 51, call: 4 Time : 23:06:35 Severity : error Internal Error : 1060 Native Error : 0 Message : WebPageLink(HTTP: 1060 - HTML Hyperlink not found., "Art &Music") }

        Message(4,HTTP):

        { Transaction : TMAIN, line: 58, call: 4 Time : 23:06:40 Severity : error Internal Error : 1060 Native Error : 0 Message : WebPageLink(HTTP: 1060 - HTML Hyperlink not found., "Add toShopping Cart") }

        I also tried to capture all the HTTP Response Header from server but the wrt
        file created by client only shows the successful http response headers of all
        the requests serviced. The following is a snapshot of the file generated for
        User 26:

        HTTP/1.1 200 OK^M
        X-Powered-By: Servlet/2.5^M
        Server: GlassFish/v3^M
        ETag: W/"389-1224043242000"^M
        Last-Modified: Wed, 15 Oct 2008 04:00:42 GMT^M
        Content-Type: text/html^M
        Content-Length: 389^M
        Date: Wed, 15 Oct 2008 05:58:33 GMT^M
        Connection: Keep-Alive^M
        ^M

        HTTP/1.1 200 OK^M
        X-Powered-By: Servlet/2.5^M
        Server: GlassFish/v3^M
        Content-Type: text/html;charset=ISO-8859-1^M
        Content-Length: 2466^M
        Date: Wed, 15 Oct 2008 05:59:14 GMT^M
        Connection: Keep-Alive^M
        ^M

        HTTP/1.1 200 OK^M
        X-Powered-By: Servlet/2.5^M
        Server: GlassFish/v3^M
        Content-Type: text/html;charset=ISO-8859-1^M
        Content-Length: 5730^M
        Date: Wed, 15 Oct 2008 05:59:29 GMT^M
        Connection: Keep-Alive^M
        ^M

        HTTP/1.1 200 OK^M
        X-Powered-By: Servlet/2.5^M
        Server: GlassFish/v3^M
        Set-Cookie: JSESSIONID=f16b5225a4f090e149d55b9b4f33; Path=/NileBookStore; Secure^M
        Content-Type: text/html;charset=ISO-8859-1^M
        Content-Length: 851^M
        Date: Wed, 15 Oct 2008 05:59:50 GMT^M
        Connection: Keep-Alive^M
        ^M

        HTTP/1.1 200 OK^M
        X-Powered-By: Servlet/2.5^M
        Server: GlassFish/v3^M
        Content-Type: text/html;charset=ISO-8859-1^M
        Content-Length: 1894^M
        Date: Wed, 15 Oct 2008 06:00:12 GMT^M
        Connection: Keep-Alive^M
        ^M

        Show
        meenap added a comment - As per bug discussion and plan, restarted this test on B28a with enabling error logging on client. After all the 100 users loaded, the ave response time per transaction was still high at around 43.66 to 92 seconds and at 10 mins, it ranges from 93 to 114 seconds. Within 10 mins, there were already about 44 client errors. I have stopped the run to collect the error reports and will restart it to run overnight. This is a snapshot of what the error report states for User 26: Message(1,Security): { Transaction : TMAIN, line: 37, call: 4 Time : 23:06:25 Severity : error Internal Error : 10 Native Error : 0 Message : WebPageUrl(Security: 10 - SSL connection failed, SSLConnect) } Message(2,HTTP): { Transaction : TMAIN, line: 44, call: 4 Time : 23:06:31 Severity : error Internal Error : 1060 Native Error : 0 Message : WebPageLink(HTTP: 1060 - HTML Hyperlink not found., "browse_button") } Message(3,HTTP): { Transaction : TMAIN, line: 51, call: 4 Time : 23:06:35 Severity : error Internal Error : 1060 Native Error : 0 Message : WebPageLink(HTTP: 1060 - HTML Hyperlink not found., "Art &Music") } Message(4,HTTP): { Transaction : TMAIN, line: 58, call: 4 Time : 23:06:40 Severity : error Internal Error : 1060 Native Error : 0 Message : WebPageLink(HTTP: 1060 - HTML Hyperlink not found., "Add toShopping Cart") } I also tried to capture all the HTTP Response Header from server but the wrt file created by client only shows the successful http response headers of all the requests serviced. The following is a snapshot of the file generated for User 26: HTTP/1.1 200 OK^M X-Powered-By: Servlet/2.5^M Server: GlassFish/v3^M ETag: W/"389-1224043242000"^M Last-Modified: Wed, 15 Oct 2008 04:00:42 GMT^M Content-Type: text/html^M Content-Length: 389^M Date: Wed, 15 Oct 2008 05:58:33 GMT^M Connection: Keep-Alive^M ^M HTTP/1.1 200 OK^M X-Powered-By: Servlet/2.5^M Server: GlassFish/v3^M Content-Type: text/html;charset=ISO-8859-1^M Content-Length: 2466^M Date: Wed, 15 Oct 2008 05:59:14 GMT^M Connection: Keep-Alive^M ^M HTTP/1.1 200 OK^M X-Powered-By: Servlet/2.5^M Server: GlassFish/v3^M Content-Type: text/html;charset=ISO-8859-1^M Content-Length: 5730^M Date: Wed, 15 Oct 2008 05:59:29 GMT^M Connection: Keep-Alive^M ^M HTTP/1.1 200 OK^M X-Powered-By: Servlet/2.5^M Server: GlassFish/v3^M Set-Cookie: JSESSIONID=f16b5225a4f090e149d55b9b4f33; Path=/NileBookStore; Secure^M Content-Type: text/html;charset=ISO-8859-1^M Content-Length: 851^M Date: Wed, 15 Oct 2008 05:59:50 GMT^M Connection: Keep-Alive^M ^M HTTP/1.1 200 OK^M X-Powered-By: Servlet/2.5^M Server: GlassFish/v3^M Content-Type: text/html;charset=ISO-8859-1^M Content-Length: 1894^M Date: Wed, 15 Oct 2008 06:00:12 GMT^M Connection: Keep-Alive^M ^M
        Hide
        meenap added a comment -

        This same issue has been filed in bugster. Going forward, updates will be done
        in bugster for this issue.

        Show
        meenap added a comment - This same issue has been filed in bugster. Going forward, updates will be done in bugster for this issue.
        Hide
        meenap added a comment -

        Closing issue. See earlier reasons for this.

        Show
        meenap added a comment - Closing issue. See earlier reasons for this.

          People

          • Assignee:
            jfarcand
            Reporter:
            meenap
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: