Friday, March 22, 2013

Yum memory error

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 :

root@server1 [~]# 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.
# ulimit -m unlimited 
#ulimit -v unlimited
  Then run yum again........
This would helps......:)

No comments:

Post a Comment