There is a Rails 5.0.0 project in which there are a lot of tasks. All these tasks are associated with both simple updating of data in the database and parsing.
Almost 20 additional gems are registered in the Gemfile. Anyway, they take part in the project somewhere.
All this is on a server with 1Gb RAM and 1 CPU.
When Rails Tasks are not running (by the way, they are started by CRON), then the application lives to itself normally. But as soon as one, two or even three tasks start (not necessarily at the same time, it is enough that their work intersects), then the RAM quickly ends, the processes start to be killed by the system, and so on.
In principle, this problem solves SWAP. But there is one BUT - the project and the task begin to blunt. They are very slow.
Now to the point.
I wrote above about ~ 20 gem project. And after all, all these gems are also used by tasmas, even if they are not needed there, right? How to specify your personal Gemfile (list of gems) for tasks, so that tasks do not eat so much RAM (or else one task can safely take RAM as a Rails project)?
I think I have made my situation more clear.