Created
March 17, 2021 23:00
-
-
Save timetorock/21784e06f76477a0e837419c3d764e60 to your computer and use it in GitHub Desktop.
Laravel memory exhausted investigation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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