yum install packages-microsoft-com-prod - out of memory error
I am trying to install powershell on CentoOS 8. I follow the official Microsoft instructions.
I had some previous issue.
I rented a nanode from Linode which is the smallest model. I get memory error:
[codingsafari@centosbox ~]$ sudo yum update
CentOS-8 - AppStream 140 kB/s | 4.3 kB 00:00
CentOS-8 - Base 155 kB/s | 3.8 kB 00:00
CentOS-8 - Extras 43 kB/s | 1.5 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 33 kB/s | 14 kB 00:00
packages-microsoft-com-prod 28 kB/s | 2.9 kB 00:00
Out of memory allocating 771751936 bytes!
Killed
[codingsafari@centosbox ~]$ free -m
total used free shared buff/cache available
Mem: 821 77 648 1 95 633
Swap: 511 75 436
It is a fairly small node so I resized the node to the next bigger tier and the same error happens
[codingsafari@centosbox nginx]$ sudo yum install -y powershell
packages-microsoft-com-prod 25 kB/s | 2.9 kB 00:00
Out of memory allocating 419430400 bytes!
[codingsafari@centosbox nginx]$ free -m
total used free shared buff/cache available
Mem: 1829 83 1663 1 82 1631
Swap: 511 85 426
At this point, I highly doubt it has something to do with the size of the node. Does anyone know why this could happen?
1 Reply
This is a pretty curious issue. I gave it a shot and I wasn't able to replicate this particular error. If you have any other services running on your Linode they might be using up your available memory.
I would recommend auditing your running services with the command top -bn 1 | head -15
You may also get some useful output from vmstat 1 10
which provides more details on the usage of available memory, as well as swap and cache.
I would also recommend double checking your logs for any clues.
If you can provide any additional details, such as OOM killer messages, be sure to provide it here so we can take a closer look.