RAM full after dist-upgrade, apache2, php, mysql installation on a VPS
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
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. .....
.....
The problem is due to lack of memory in your server. The memory limit of 256MB has been reached in your server.
To solve the problem, you will have to upgrade your memory. Your mysql and apache is eating up most of server memory.
So I shut down apache2 and mysql and I got back like 240MB free RAM & I managed to install php5-mcrypt - but on restarting apache2 and mysql, back to memory full and even phpMyAdmin wouldnt work - memory exhausted in php.
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).
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.