Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Memory Error while doing yum update or install  (Read 3845 times)

0 Members and 1 Guest are viewing this topic.

Ajayan

  • Guest
Memory Error while doing yum update or install
« on: March 22, 2015, 05:46:11 pm »
If you are getting “MemoryError” while doing yum update or yum install, do the below steps. it will fix the error

Run the below command.
>>  ulimit -a
The output will like
=============================
# 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 work :-)