I'm trying to get monerod up and running on a VPS with 1gb of RAM. My understanding is that once the chain is synced, monerod's memory usage should be quite reasonable. However, during the initial blockchain sync process, it is outgrowing the 1gb limit.
A search on here and on reddit turned up a recommendation to use ulimit. However, when I type:
ulimit -v 1000000
to constrain the virtual memory to 1gb of RAM, monerod won't even start, complaining that there isn't enough memory to do its initial allocation.
1gb of RAM is supposed to be within the minimal requirements for Monero, so what is the correct way to constrain memory usage?