When accessing some pages on your site, running a drush command on the server or in a cron job, you might face this error:
[09-Jul-2019 07:03:27 Europe/Paris] PHP Fatal error: Allowed memory size of XXXXXXXX bytes exhausted (tried to allocate XXXXX bytes) in /full/path/to/module/page.php on line 2703 request_id="v-0000zzzz-a1b2-0000-c3d4-2703zzd0907"
As explained in the documentation "Conditionally increasing memory limits", some pages on your Drupal website (such as admin pages or reports) can require additional resources to run. However, increasing these resources globally can decrease your website's overall performance.
You need to add a snippet in your settings.php that will allocate additional memory resources for a specific path, a page or for drush. All the snippets are listed in this documentation: "Conditionally increasing memory limits"