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