zabbix / zabbix-docker

Official Zabbix Dockerfiles
https://www.zabbix.com
GNU Affero General Public License v3.0
2.38k stars 1.37k forks source link

PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 16718272 bytes) in /usr/share/zabbix/include/classes/html/CObject.php on line 34 #1534

Closed ITMPGIT closed 3 weeks ago

ITMPGIT commented 3 weeks ago
SUMMARY

I'm facing an issue related to PHP memory limit on Zabbix Docker images. I receive a fatal error indicating that the allowed memory size has been exhausted.

OS / ENVIRONMENT / Used docker-compose files
CONFIGURATION

my config docker-compose.yml:


version: '3'
services:
  zabbix:
    image: zabbix/zabbix-web-nginx-mysql
    environment:
      - PHP_MEMORY_LIMIT=256M
    ...
Is there any environment variable to adjust the php memory or do I have to build it?
dotneft commented 3 weeks ago

https://github.com/zabbix/zabbix-docker/tree/7.0/Dockerfiles/web-nginx-mysql#zbx_memorylimit