我在试着运行artisan make:controller。
我遇到了一个问题:
PHP Fatal error: Allowed memory size of我试图增加memory-limit的大小,但它不起作用。我尝试了更大的值和-1。这似乎不是最好的选择。似乎我可能有一个内存泄漏,但我不知道如何找到它。这跟垃圾回收有关系吗?
我不能运行artisan代码,但是得到了:
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted
(tried to allocate 65536 bytes) in \laravel\vendor\laravel\framework\src\Illuminate\Console\GeneratorCommand.php on line 85
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted
(tried to allocate 65536 bytes) in \laravel\vendor\laravel\framework\src\Illuminate\Support\Manager.php on line 85 发布于 2019-04-30 13:40:48
您可能需要检查类自动加载之间的循环引用
发布于 2019-04-30 15:41:22
您确定您在正确的php.ini上设置了内存限制吗?
以下命令应该会对您有所帮助。
php -d memory_limit=256M artisan make:controllerhttps://stackoverflow.com/questions/55911534
复制相似问题