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

move to trash and trashpurge.php can hit the memory limit

    XMLWordPrintable

Details

    Description

      given any specified amount of memory X for the script to run, if there are enough objects in the trash, the script breaks with a memory limit error. even using the --iteration-limit=n option cause the script to break. the only factor that matters is the amount of objects in the trash.

      Steps to reproduce

      here are simple steps to reproduce:

      • set on php-cli.ini (or the .ini used for the CLI settings) file to some low value, such as 4M
      • send a few hundred objects into the trash
      • run trashpurge with --iteration-limit=1
      • didn't break? send some more objects to trash (the last ones were deleted, so send more on this cycle)
      • repeat the cycle, with enough objects in the trash, the script will always break for the given memory defined.

      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:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 days, 7 hours, 54 minutes
                3d 7h 54m