title: Heroku Memory Limit PHP
body: <p><a href="https://devcenter.heroku.com/articles/php-concurrency" rel="nofollow noreferrer">This article</a> on Heroku states that 128MB should be enough for most PHP applications. I perceive this as a bold statement looking at <a href="https://github.com/composer/composer/blob/4ebb747e12f0aa56cb6e13eef48395798e0db5e1/bin/composer" rel="nofollow noreferrer">composer</a> which increases memory limit to 1.5GB when run.</p>
  
  <p>Specifically, we run into problems when generating PDFs or handling large database exports. I guess I am missing out on some best practice here. How should we tackle memory-intensive tasks on Heroku? </p>
  
  <p>One way to do achieve this would probably be to write a <code>.user.ini</code> to increase the memory limit. But I guess this is considered bad practice. </p>