Have Discourse's requirements changed recently?

A lot of users have come across failed rebuilds recently (since September 2024) with the command was killed with SIGKILL error, even though the servers have more than 1 GB RAM (even 4 GB RAM).

https://meta.discourse.org/search?q=%22command%20was%20killed%20with%20SIGKILL%22

Advice has been given to create (or increase) a swap file, and it fixed the issue:

I myself have encountered this problem on at least two of my 7 forums, on machines having 2 to 4 GB RAM.

Either the requirements have changed, in which case the documentation should be updated, or there’s something wrong.

(I don’t know where to put this topic, I thought about Bug, Installation, Site feedback… Please move it if necessary :smile:)

7 Likes

Agreed. Though the setup for the VM i was using really should have some swap, the machine should have had more than enough RAM to handle the build. Maybe just call out the need for a swap partition/file in the docs?

1 Like

discourse-setup offers to create a swap file automatically if it detects 2GB or less of memory.

Hi gerhard,

I’m aware of this, but this doesn’t address the issue unfortunately. Instances with more than 2 GB RAM will experience the rebuild error, and even instances with < 2 GB RAM who already had a 2GB swap file created by discourse-setup experiences the issue as well, like @alltiagocom’s instance.

Plus, this problem seems quite recent and was never reported before September 2024, according to the search.

2 Likes

Yes, it does. But we are in a situation, where it should create at least 2 GB of cache every time there is less than 8 GB of RAM.

I would guess it comes from the fact that every single forum will use plugins. Or something, because I don’t understand mechanics of these things.

It should be made clearer that those values are real minimums in deed, and if an admin decides to use different plugins, more RAM and cache are needed. I mean, we have far too many topics where the reason for the issues is a lack of memory.

2 Likes

This seems to need to be increased. As @Canapin pointed out with my topic having 4g of ram was not sufficient.

And as I mentioned in my topic the instructions for adding a swap file should be added to git hub install instructions even if just an option if 4g of ram or less.

@david recently worked on this space, our memory bottleneck is during asset compilation and we now have a low memory mode as well.

My understanding is that 2gb should still be supported, this is something we will investigate.

4 Likes