Application exited with signal: killed (out of memory) - Wierd Bug In Galaxy

Hey guys,

Just had a meteor app crash under very small load.

g8dqx
2019-10-21 13:20:49+11:00Application process starting, version 143
g8dqx
2019-10-21 13:21:04+11:00Meteor APM: Successfully connected
g8dqx
2019-10-21 13:21:31+11:00{"message":"Meteor APM: completed instrumenting the app","level":"info"}
g8dqx
2019-10-21 13:21:33+11:00{"message":"{\"line\":\"80\",\"file\":\"migrations_server.js\",\"message\":\"Migrations: Not migrating, already at version 2\",\"time\":{\"$date\":1571624493296},\"level\":\"info\"}","level":"info"}
s9cdv
2019-10-21 13:24:38+11:00The container is being stopped as part of deploying a new version.
s9cdv
2019-10-21 13:24:38+11:00Application exited with signal: terminated
g8dqx
2019-10-21 16:50:45+11:00Application exited with signal: killed (out of memory)
nerqa
2019-10-21 16:51:31+11:00Application process starting, version 143
nerqa
2019-10-21 16:51:53+11:00{"message":"Meteor APM: Successfully connected","level":"info"}
nerqa
2019-10-21 16:52:21+11:00{"message":"Meteor APM: completed instrumenting the app","level":"info"}
nerqa
2019-10-21 16:52:23+11:00{"message":"{\"line\":\"80\",\"file\":\"migrations_server.js\",\"message\":\"Migrations: Not migrating, already at version 2\",\"time\":{\"$date\":1571637143509},\"level\":\"info\"}","level":"info"}

Anyone have any idea why this might be happening? This was in Galaxy, and similar errors seem to be from about 2 years ago. First time this happened.

Any pointers appreciated. Thanks so much.

I had something like that happen to me a while ago, and it turned out to be a missing index in a collection.

In the beginning this didn’t matter, because there wasn’t too much data in the collection yet, but as it grew, the server needed to load the entire collection into memory to perform certain queries.

Adding of an index on the fields used in the queries solved that.

1 Like

Ok - kind of makes sense. Let me have a play and see if this works.

It may also be a memory leak or a certain function (such as document upload) is causing an spike in memory usage.

1 Like