Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-19597

Script bin/php/dfscleanup.php fails with "allowed memory exhausted error"

    XMLWordPrintable

Details

    Description

      With a large enough database, or a small enough memory size for PHP, the script fails with an "allowed memory size exhausted" error. the cause is that all the entries in the DFS table are fetched into memory.

      the script should be allowed to run successfully no matter what the amount of memory is dedicated to the PHP.

      Steps to reproduce

      make enough content to have more 100k rows in the ezdfsfile. reduce the max_memory for the PHP script to run to 1M or less. keep reducing the memory or adding content, and eventually the script breaks.

      Attachments

        Activity

          People

            Unassigned Unassigned
            pbr@ez.no pbr@ez.no
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Time Spent - 2 days, 2 hours, 30 minutes Remaining Estimate - 1 hour, 30 minutes
                1h 30m
                Logged:
                Time Spent - 2 days, 2 hours, 30 minutes Remaining Estimate - 1 hour, 30 minutes
                2d 2h 30m