[Solved] Memory error with YUM

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


# 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 Ashok

Operations Engineer at Endurance International Group. Linux lover. Like to play on Linux console. I started this blog to share and discuss Linux thoughts.

Always happy for an open discussion! Write to arun (@) crybit (dot) com. Check about me for more details. About this blog and our strong members, check The team CryBit.com
Please follow the LinkedIn page

Leave a Reply

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