Skip to content

Instantly share code, notes, and snippets.

@timetorock
Created March 17, 2021 23:00
Show Gist options
  • Save timetorock/21784e06f76477a0e837419c3d764e60 to your computer and use it in GitHub Desktop.
Save timetorock/21784e06f76477a0e837419c3d764e60 to your computer and use it in GitHub Desktop.
Laravel memory exhausted investigation
If you in the same story as me:
- Laradock or other Docker containers
- No errors
- No logs
- Laravel request eats our all your memory in docker and killed silently
- You even tried to debug your code with xDebug and nothing happened after Exception
The reason is `xDebug 3.0` with `develop` enabled,
it prints detailed info about the exceptions and in the case of Laravel take a lot of memory,
even 3GB not enough, it dies, without printing any info about it.
Just disable xDebug, at least develop, and it will be fine.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment