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

general digest notification runs out of memory

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 4.2.0, 4.3.0, 4.4.0beta3
    • Fix Version/s: None
    • Component/s: Cronjobs, Notifications
    • Labels:
      None
    • Environment:

      Operating System:
      Tested with eZ 4.2, 4.3

      Description

      if nearly 10000 persons are notificated of a node (has an entry in eznotificationcollection_item für the same notifications event and a mail has to be send to all of them while handling the ezcurrenttimestamp event), it happens that 1.5 GB memerory limit in php.ini is not enough.

      The solution seems to be simple. Do not collect eZNotificationCollectionItem IDs and remevo them after sending all mails. Remove them after every mail.

      a patch is attached, please proof it and adopt it in Versions it has to.

      Steps to reproduce
      • Set subtree notification for 10000 user dor one node.
      • publish an object under this node
      • run notification cronjobs,
      • run notification cronjobs, when senddate is over
      • watch the raising memory usage

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              pa@ez.no Patrick Allaert
              Reporter:
              dn Disabled User
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: