I have a Heroku 1X dyno that immediately consumes all of its memory upon restart.
Here is the restart in the log:
2020-05-18T16:57:54.119229+00:00 app[web.1]: Stopping php-fpm...
2020-05-18T16:57:54.119814+00:00 app[web.1]: Stopping httpd gracefully...
2020-05-18T16:57:54.121897+00:00 app[web.1]: Stopping httpd...
2020-05-18T16:57:54.131154+00:00 app[web.1]: Shutdown complete.
2020-05-18T16:57:54.194178+00:00 heroku[web.1]: Process exited with status 143
2020-05-18T16:57:57.194751+00:00 app[web.1]: Detected 536870912 Bytes of RAM
2020-05-18T16:57:57.231186+00:00 app[web.1]: PHP memory_limit is 4M Bytes
2020-05-18T16:57:57.245920+00:00 app[web.1]: Starting php-fpm with 128 workers...
2020-05-18T16:57:57.386605+00:00 app[web.1]: Starting httpd...
2020-05-18T16:57:58.220510+00:00 heroku[web.1]: State changed from starting to up
My procfile is just:
web: vendor/bin/heroku-php-apache2
My .user.ini is:
memory_limit = 4M
None of this code is set to run in the background, it's just an API that handles requests. And yet it's immediately consuming the maximum memory and throwing R14 errors with 0 requests coming in. https://share.getcloudapp.com/GGukb5QZ
Anyone know what could be happening?