RAM full after dist-upgrade, apache2, php, mysql installation on a VPS
I got a new VPS with 256MB RAM and Ubuntu 9.04.
I upgraded it to 9.10 and installed apache2, php, python3, mysql5.1 Now a top is showing Code:
top - 13:11:31 up 1 day, 16:23, 1 user, load average: 0.02, 0.29, 0.29 I havent even uploaded a website till now ! No mysql data ! But already full ! Am I missing something ? Thanx |
The ideal situation is, that all RAM is used all the time.
UNIX Memory Management http://www.dataexpedition.com/~sbnoble/Tips/memory.html QUOTE : Unlike traditional PC operating systems, Unix related systems use very sophisticated memory management algorithms to make efficient use of memory resources. This makes the questions "How much memory do I have?" and "How much memory is being used?" rather complicated to answer. ..... ..... |
But when I was trying a sudo apt-get php5-mcrypt I was getting "Segmentation faultsts" often.
Code:
root@:~# sudo apt-get install php5-mcrypt Quote:
So I just dont understand how this RAM thing works for apache2 and mysql5.1 taking all the RAM without any load (since data is zero). |
Sorry, I missed that you only have 256 MB.
And I don't know, how much is required for those applications .. .. apache2, php, mysql .. In principle, "all" memory is cached all the time. And given free when needed for an (other) application. There is a million hits by Googling .. linux memory management .. This example may be more descriptive : http://www.linuxhowtos.org/System/Li...Management.htm ..... |
It looks like an OpenVz VPS (no swap; vzctl process running), so the usual rules of Linux memory management don't apply. OpenVz doesn't use memory for buffers/cache inside the VPS (only at the host node level). In the 'top' output you can see Ok buffers, 0k Cache.
motiongrafika: with 'top' running, press shift-M. That will sort the output by memory usage, with the most memory-intensive processes at top. That should give you a better idea of what's using your memory. |
Quote:
Code:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND |
All times are GMT -5. The time now is 11:09 PM. |