Checking for php memory exhaustion + possible fix

1me@web-13940:/var/log/sites/web.prod/logs/web-13940$ zgrep -c 'Allowed memory size of' php-errors.log php-errors.log-201712*
2php-errors.log:11
3php-errors.log-20171222.gz:4
1me@web-13940:/var/log/sites/web.prod/logs/web-13940$ zgrep 'Allowed memory size of' php-errors.log* | grep -o 'request_id="[^"]*' | awk -F'"' '{print $2}' | xargs -I{} zgrep {} access.log* | awk '{print $6" "$7}' | cut -c2- | sort | uniq -c | sort -nr
2      6 GET /admin/content
3      3 POST /system/ajax
4      3 POST /admin/content
5      1 POST /views/ajax
6      1 POST /admin/content?title=budget&type=resource&author=&status=All&vid=All
7      1 GET /agendas/items/all

Conditional fix in https://docs.acquia.com/articles/conditionally-increasing-memory-limits