Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-18589

Decrease the memory usage when running tests.

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.6.16, 4.7.7
    • Fix Version/s: 4.6.17, 4.7.8
    • Component/s: Test suite
    • Labels:
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      When working on CRM-17789, I always got memory errors, because the 2gb limit configured in wasn't enough.

      This is because during tests, there are a lot of DAO objects created, but never cleared, which leads to huge memory usage. The big memory eater is api_v3_SyntaxConformanceTest.

      The attached PR fixes this problem, and has a little speed bonus too

        Attachments

          Activity

            People

            • Assignee:
              mollux Mattias Michaux
              Reporter:
              mollux Mattias Michaux
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: