Memory usage increasing Debian Lenny Apache2 server
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Memory usage increasing Debian Lenny Apache2 server
Hi all,
I have a Web server running Apache2 and PHP5 on a Debian Lenny. When I "TOP" the processes, I can see that the Mem: used is consistently increasing. And now, the Swap is being used. This is what TOP tells me:
The server is only used to host a web application developed in PHP. It hosts PHP5 and MySQL for the DB. Webmin is installed to monitor the server from a browser. Webmin tells me the following:
Operating system Debian Linux 5.0
Webmin version 1.510
Time on system Mon May 10 11:01:19 2010
Kernel and CPU Linux 2.6.26-2-686 on i686
Processor information Intel(R) Xeon(R) CPU X3363 @ 2.83GHz, 4 cores
System uptime 19 days, 22 hours, 21 minutes
Running processes 99
CPU load averages 0.00 (1 min) 0.00 (5 mins) 0.00 (15 mins)
CPU usage 0% user, 0% kernel, 0% IO, 100% idle Real memory 3.21 GB total, 180.86 MB used
Virtual memory 3.72 GB total, 700 kB used
Local disk space 1.79 TB total, 99.94 GB used
I have very little knowledge with server administration and I am worried my server will crash. I don't know what to do to check the processes that may consume memory and not release it after use.
Any guidance, things to do on the server to verify that everything is going alright would be appreciated.
There is no problem. Linux is designed to use memory, and you only have 700k of swap. Don't worry about it.
This is my machine when streaming video over http -
Thank you for your answer. So there is nothing to worry about? I understand that the server is using the memory available. But because I only have 1 web application running (and currently no user connected to it), I am surprised that the memory usage increases over time like that.
Should I restart the server once a week to make sure it won't crash? Or should I install a program to release the memory manually with a cron task?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.