danielunited It may help, but be aware that Composer eating over 2 GB of memory is not an unusual situation, so it may be just a waste of money to upgrade only for command run one per 1-2 months.
And you shouldn't really need to run dependencies resolving on production server, since it is really easy break your live forum. Generating composer.lock
with tested dependencies should be preferred solution.