Memory usage increasing Debian Lenny Apache2 server
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?
It sounds like something is memory leaking.
Please put the top output in code tags!
That was also my guess, something leaking... but I don't know how to find what is leaking, if anything. Can you give me some hints on how to do that ?
|All times are GMT -5. The time now is 06:07 AM.|