Laravel Artisan Hangs using Memory Until Freeze


With Laravel 5.4 Artisan will not run and uses a lot of memory, it worked a long while before with the same versions (besides PHP 7.0.14 to 7.0.15 maybe?).

<strong>Problem</strong>: any $ ./artistan command does nothing. While watching htop I notice the memory climb from 2gb to 4gb very quickly. Once I cancel it, it jumps back down.

<strong>What Im Using</strong>

<ul><li>Ubuntu Linux Xenial x64 (Local Development)</li> <li>Apache2.4</li> <li>MySQL 5.7</li> <li>PHP 7.0.15 <ul><li>Laravel 5.4</li> <li>Composer 1.3.2</li> </ul></li> </ul>

<strong>PHP Extensions Loaded</strong>

[PHP Modules] bz2 Core ctype curl date dom exif fileinfo filter gd gettext hash iconv igbinary imap intl json libxml mbstring mcrypt mysqli mysqlnd odbc openssl pcntl pcre PDO pdo_mysql PDO_ODBC Phar posix readline redis Reflection session shmop SimpleXML soap sockets SPL standard sysvmsg sysvsem sysvshm tidy tokenizer wddx xml xmlreader xmlrpc xmlwriter xsl Zend OPcache zip zlib [Zend Modules] Zend OPcache

<strong>Things I've Tried:</strong>

<ul><li>Removed the bootstrap/cache/config.php file. <ul><li>composer dumpautoload</li> <li>composer self-update</li> </ul></li> <li>The Artisan commands don't work below <ul><li>php artisan clear-compiled</li> <li>php artisan optimize</li> <li>php artisan optimize --force</li> </ul></li> </ul>

<strong>My Guess</strong> I'm guessing I have a PHP extension enabled causing the problem but I wouldn't know which -- Please let me know if you have any ideas or clues.

Thank you!


It's missing ::class I had the same problem, just like you, one little mistake.


Did a new installation, and this is causing it:


$providers => [ ... Laravel\Cashier\CashierServiceProvider ... ]

from <a href="https://laravel.com/docs/5.4/billing" rel="nofollow">https://laravel.com/docs/5.4/billing</a>

I'm not sure why this is causing it. I have followed the instructions with no implementation (I cannot migrate without artisan running either. This is odd but fixes it for now.


  • Using electron-usb with electron
  • Linked list storing prime numbers from 1 to 1000
  • Rtools 3.5 not recognized?
  • Cmder : how to use an alias in another alias?
  • How to create a binary executable using hex?
  • Opencv - Can't find header files
  • Opposite for OpacityMask
  • Embed and reference an EXE in c#
  • Format float to show decimal places if is not zero java [duplicate]
  • “oncore” folder in Visual Studio 2017
  • How to build a 64-bit .NET DLL, with 64-bit COM interop?
  • How to query with a where clause in mysql json table
  • fs.writeFile callback never gets called, same for WritableStream.write, etc
  • Can't load installed PHP version in Apache (Homebrew OS X)
  • Debian Jessie - Apache2 / PHP 5.6, can't upload more than 128kb
  • Fibonacci Computation Time
  • Parallel proccessing in R doParallel foreach save data
  • Visual Studio 2017 compatibality with boost 1.64.0/1.63.0 issue
  • overhead of reserving address space using mmap
  • php cannot connect to mysql in docker-compose
  • SSLException: Connection has been shutdown: javax.net.ssl.SSLException: Tag mismatch
  • 500 internal server error in ruby on rails
  • How to Use Two Different PHP Versions on One Server
  • MongoDB GeoJSON “Can't extract geo keys from object, malformed geometry?” when inserting type P
  • MYSQ & MVC3 SQL connection error \\ ProviderManifestToken but I am using MySQL
  • Can I programmatically choose the Android layout folder?
  • Graphics.CopyFromScreen [Web application] + The handle is invalid
  • Does Mobilefirst provide a provision to access web services directly?
  • How to use JavaScript to determine whether a file exists in a directory?
  • ADO and msqli connections very slow
  • PHP buffered output depending on server setting?
  • Moving mysql files across servers
  • Resize panoramic image to fixed size
  • How to check if every primary key value is being referenced as foreign key in another table
  • Weird JavaScript statement, what does it mean?
  • Function pointer “assignment from incompatible pointer type” only when using vararg ellipsis
  • Comma separated Values
  • coudnt use logback because of log4j
  • Are Kotlin's Float, Int etc optimised to built-in types in the JVM? [duplicate]
  • costura.fody for a dll that references another dll