Monitoring Tools/Grafana
[Grafana] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes)
ploz
2024. 1. 29. 15:50
반응형
Grafana 에서 Last 24 hours 에서 표출되던 그래프가 Last 2 Days 로 변경하게 되면 표출되지 않는 문제가 발생한다.
이때 grafana log 는 아래와 같다.
level=info msg="Request Completed" method=POST path=/api/ds/query status=400 remote_addr=10.10.100.5 time_ms=6556 duration=6.556452887s size=122 referer=
nginx error log는 아래와 같다.
[error] 270841#0: *153055 FastCGI sent in stderr: "PHP message: PHP Deprecated: Parameter "/auth" is deprecated. in /usr/share/zabbix/include/classes/validators/CApiInputValidator.php on line 1475PHP message: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /usr/share/zabbix/include/db.inc.php on line 423" while reading response header from upstream, client:
해결
nginx fastcgi_param 값을 아래와 같이 추가 해준다.
# vim /etc/nginx/fastcfi_params
...
fastcgi_param PHP_VALUE "memory_limit = 512M";
512M는 시스템 사정에 맞게 변경한다.
반응형