title: Laravel Artisan Hangs using Memory Until Freeze
body: <p>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?).</p>
  
  <p><strong>Problem</strong>: any <code>$ ./artistan</code> command does nothing. While watching <code>htop</code> I notice the memory climb from <code>2gb</code> to <code>4gb</code> very quickly. Once I cancel it, it jumps back down.</p>
  
  <p><strong>What Im Using</strong></p>
  
  <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>
  
  <p><strong>PHP Extensions Loaded</strong></p>
  
  <pre><code>[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
  </code></pre>
  
  <p><strong>Things I've Tried:</strong></p>
  
  <ul>
  <li>Removed the bootstrap/cache/config.php file.
  
  <ul>
  <li><code>composer dumpautoload</code></li>
  <li><code>composer self-update</code></li>
  </ul></li>
  <li>The Artisan commands don't work below
  
  <ul>
  <li><code>php artisan clear-compiled</code></li>
  <li><code>php artisan optimize</code></li>
  <li><code>php artisan optimize --force</code></li>
  </ul></li>
  </ul>
  
  <p><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.</p>
  
  <p>Thank you!</p>