Can the Mender server run with less than 2 GB of ram?

Hi guys,

I finally finished installing a mender server on an EC2 instance. One thing I struggled with is that it had a hard time running on a free tier t2.micro 1GB of ram instance. ./run ps would take a little while to show what’s going on (20-30seconds), and sometimes wouldn’t work at all and would show this kind of message :

~/mender-server/production$ ./run ps
^[[1;5FTraceback (most recent call last):
  File "bin/docker-compose", line 6, in <module>
  File "compose/cli/", line 71, in main
  File "compose/cli/", line 127, in perform_command
  File "compose/cli/", line 740, in ps
  File "compose/cli/", line 24, in table
  File "compose/cli/", line 14, in get_tty_width
  File "", line 980, in popen
  File "", line 729, in __init__
  File "", line 1295, in _execute_child
OSError: [Errno 12] Cannot allocate memory
[18407] Failed to execute script docker-compose

Bumping it up to a t2.small instance with 2GB of ram easily fixed this problem and now it’s working well. Just putting it here since either

  1. I was doing something wrong and it should work fine with 1GB of ram
  2. 2GB is somewhat of a minimum requirement, in which case it could be good to add to the documentation.

Check out this entry:
and see if it helps.

My Mender server runs on a VM with 2 GB of ram, while also running a couple of other services, and the machine still having room to spare (it currently runs an MSSQL docker container, a postgres container, our cloud service).

To be honest, we don’t have too much devices linked yet…