Fatal PHP Error [Mon Jan 29 23:34:08 2018] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 262144 bytes) in C:\xampp\htdocs\SideBar\vendor\laravel\framework\src\Illuminate\Container\Container.php on line 586 [Mon Jan
For some reason I'm getting the following error in my console:
[Mon Jan 29 23:34:08 2018] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 262144 bytes) in C:\xampp\htdocs\SideBar\vendor\laravel\framework\src\Illuminate\Container\Container.php on line 586
[Mon Jan 29 23:34:08 2018] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 262144 bytes) in C:\xampp\htdocs\SideBar\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php on line 122
[Mon Jan 29 23:35:18 2018] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 262144 bytes) in C:\xampp\htdocs\SideBar\vendor\laravel\framework\src\Illuminate\Container\Container.php on line 692
[Mon Jan 29 23:35:18 2018] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 262144 bytes) in Unknown on line 0
C:\xampp\htdocs\SideBar>composer dumpautoload
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover
VirtualAlloc() failed: [0x00000008] Not enough storage is available to process this command.
VirtualFree() failed: [0x000001e7] Attempt to access invalid address.
VirtualAlloc() failed: [0x00000008] Not enough storage is available to process this command.
VirtualFree() failed: [0x000001e7] Attempt to access invalid address.
PHP Fatal error: Out of memory (allocated 1526726656) (tried to allocate 262144 bytes) in C:\xampp\htdocs\SideBar\vendor\laravel\framework\src\Illuminate\Container\Container.php on line 586
VirtualAlloc() failed: [0x00000008] Not enough storage is available to process this command.
VirtualFree() failed: [0x000001e7] Attempt to access invalid address.
PHP Fatal error: Out of memory (allocated 1526726656) (tried to allocate 262144 bytes) in C:\xampp\htdocs\SideBar\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\HandleExceptions.php on line 122
Script @php artisan package:discover handling the post-autoload-dump event returned with error code 255
is this the first time you have recieved this? what are you doing that returns this?
your php might be using too much memory (surprise surprise) like a foreach loop or stuff like that.. if its one particular script paste the code here so we can see..
i think upping a limit is just painting over a crack in the wall.. which might eventually lead to broken wall..
hi, im experiencing the same problem. i already increase the memory limit to 10000M... but still got the same error. each time when error occured, apache need to restart. is there any solution for this. kindly pls help me. thank you.
error message:
VirtualAlloc() failed: [0x00000008] Not enough storage is available to process this command.
VirtualFree() failed: [0x000001e7] Attempt to access invalid address.