Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-47808

OutOfMemoryException when parsing huge JMeter result file

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Component/s: performance-plugin
    • Labels:
      None
    • Environment:
      Jenkins: 2.60.3 LTS
      performance-plugin: 3.3
    • Similar Issues:

      Description

      I have a regression with the performance-plugin 3.3 when I have huge (100MB) JMeter result file. That used to work fine with v3.2 of the plugin.

      After a little research, I have isolated the commit that introduced this problem, it's https://github.com/jenkinsci/performance-plugin/commit/cf7619661aae252ad7866ffc2e819c2e9c929afa

      The ParserDetector class now load entirely the file to detect which parser to use. It would be better to use a StAX implementation to perform this detection.

      I have a pull request to demonstrate the problem and provide a fix.

       

        Attachments

          Activity

          Hide
          undera Andrey Pokhilko added a comment -

          Thanks for contributing!

          Show
          undera Andrey Pokhilko added a comment - Thanks for contributing!
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Julien Coste
          Path:
          src/main/java/hudson/plugins/performance/parsers/ParserDetector.java
          src/test/java/hudson/plugins/performance/parsers/ParserDetectorTest.java
          http://jenkins-ci.org/commit/performance-plugin/703fec4a4d84462396959e36b728ca6c5acb90ab
          Log:
          JENKINS-47808 Fix OutOfMemoryException when parsing huge JMeter XML result file (#148)

          • use StAX to detect XML file type
          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Julien Coste Path: src/main/java/hudson/plugins/performance/parsers/ParserDetector.java src/test/java/hudson/plugins/performance/parsers/ParserDetectorTest.java http://jenkins-ci.org/commit/performance-plugin/703fec4a4d84462396959e36b728ca6c5acb90ab Log: JENKINS-47808 Fix OutOfMemoryException when parsing huge JMeter XML result file (#148) add test to show bug ( JENKINS-47808 ) use StAX to detect XML file type
          Hide
          jcoste_orange Julien Coste added a comment -
          Show
          jcoste_orange Julien Coste added a comment - The pull request is here :  https://github.com/jenkinsci/performance-plugin/pull/148

            People

            • Assignee:
              undera Andrey Pokhilko
              Reporter:
              jcoste_orange Julien Coste
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: