[Solved] Memory error with YUM

If you are getting “MemoryError” while doing yum update or yum install ,follow the steps shown below:

Solution:

# ulimit -a

The output for this will be obtained as :

# ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 19
file size               (blocks, -f) unlimited
pending signals                 (-i) 139264
max locked memory       (kbytes, -l) 32
max memory size         (kbytes, -m) 10000
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 10240
cpu time               (seconds, -t) unlimited
max user processes              (-u) 15
virtual memory          (kbytes, -v) 262144
file locks                      (-x) unlimited

The reason for such memory error is because of virtual memory and max memory size. It should be unlimited, otherwise it will show memory error.
Please do the following steps to solve the issue with yum.

# ulimit -m unlimited 
# ulimit -v unlimited

Then run yum again.
This would helps……:)

Related links:
cPanel/WHM EasyApache failed YUM error

Post navigation

Arunlal A

Engineer. Linux enthusiast. Traveller. DevOps learner and practitioner. I enjoy working with Linux, DevOps, automation, and technology while exploring new places along the way. I use this space to share my experiences, learnings, experiments, and things I discover along the journey. Whether you're a seasoned DevOps professional or just getting started, let's connect, learn, and grow together. Happy coding, automating, and deploying!

Leave a Reply

Your email address will not be published. Required fields are marked *