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.
Im running a Debian webserver with apache2/mysql on a Intel(R) Core(TM)2 Duo CPU E4500 @ 2.20GHz that has 2GB of ram in it. The problem i have that just after a few hours the server gets 99% memoery usage. the load is 0.01 0.02 0.03 but the memoery is at 1.93 GiB used all the time, why is this ?
Then when you run htop, you can sort (F5) by memory and you can then view which specific daemon or applications are using up all your memory. Let me know what you find...
Then when you run htop, you can sort (F5) by memory and you can then view which specific daemon or applications are using up all your memory. Let me know what you find...
THANKS! this cleared the memoery problem. is there some way to make it not cache like that all the time ??
I'm sure there is, but I don't know it. A new thread in the right forum, with a good title will get you a good discussion on the subject. I just made an executable script out of the previous command that I run manually when I need to clear the cache. I'm guessing what you are wanting to do would be in the kernel somewhere.
If this thread is solved, don't forget to mark it as such and if I helped don't forget the thumbs up!
Its perfectly normal and correct for Linux to use all the avail memory to cache stuff. Its pointless having RAM installed an not using it. There's loads of qns here on LQ that will tell you the same thing. Do not start fooling with the caching unless
1. you are having performance issues
2. you know what you are doing.
Your screen shot shows you're utilizing 263 MB's of RAM with MySQL, Bind, & Apache running. I can't see what else you have installed but your system is running very light in my opinion unless I am missing something. I can tell you that I have servers that run the same thing on RHEL / CentOS that use 3 times as much as your machine. I wouldn't mess with the cache on the system. Your system looks perfect to me unless I am totally missing something.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.