Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku Rails could not fork new process for connection: Cannot allocate memory

I have 3 Rails applications that all use the same code base. 2/3 of the applications are running fine, but one of them gives me this error:

could not fork new process for connection: Cannot allocate memory

Upon trying to look at the Postgres logs, it is a little more specific:

psql: bin//psql-9.2.1-64bit pv: bin//pv-1.1.4-64bit psql-9.2.1-64bit:
could not fork new process for connection: Cannot allocate memory
could not fork new process for connection: Cannot allocate memory
could not fork new process for connection: Cannot allocate memory
bin/brie: line 146: [: : integer expression expected pg_dump:
bin//pg_dump-9.2.1-64bit psql-9.2.1-64bit:
could not fork new process for connection: Cannot allocate memory
could not fork new process for connection: Cannot allocate memory
could not fork new process for connection: Cannot allocate memory

This is a relatively small app, especially data-wise. I have tried re-pushing everything, I have tried heroku-restart, and Heroku's status page says they're fine. Any help would be appreciated.

like image 462
rpearce Avatar asked Apr 22 '13 13:04

rpearce


1 Answers

Heroku people fixed it. Their problem

like image 82
rpearce Avatar answered Nov 04 '22 21:11

rpearce