-
Change Request
-
Resolution: Unresolved
-
Minor
-
None
-
4.2.1, 4.2.2
-
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:
- configure your account to display ~150 rows on the same page
- 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!