Limit the number of fetched Actions per problem in problem view

XMLWordPrintable

    • Type: Change Request
    • Resolution: Unresolved
    • Priority: Minor
    • None
    • Affects Version/s: 4.2.1, 4.2.2
    • Component/s: Frontend (F)
    • Environment:
      PHP 7.3

      Conditions:**

      We configured Zabbix to send all events to a custom php script dealing with all notifications. Thus there are a lots' of action linked to our problems.

      Steps to reproduce:

      1. configure your account to display ~150 rows on the same page
      2. Navigate to problem.view

      Result:

      White page/error 500/out of memory

      Analyze:
      see memory profile.png - it seems CAlert::get is leading to very large memory consumption.

       

      Workaround/solution:

      within include/actions.inc.php, function getEventsAction, when calling API::Alert()->get(), I added a new options: 'time_from' => time()-86400 .

       

      This limit the number of Action it fetch and make everyting working again.

       

      The best solution would probably be to fetch max n actions of each event where n would be configurable somewhere.

       

      Bottom line:

      Thanks for all your great work!

       

       

       
       

            Assignee:
            Zabbix Development Team
            Reporter:
            Arnaud Ligot
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: