 |
Linode Forum Linode Community Forums
|
| Author |
Message |
mottalrd
Joined: 23 Dec 2011
Posts: 16
|
| Posted: Fri Dec 23, 2011 12:42 pm Post subject: Apache Memory Usage Question |
|
|
Hi everybody,
I'am just starting using linode and today I moved my wordpress website. After a while a started getting the notifications about memory and CPU load.
Right now the website is under maintenance and I am wondering if these top values (for memory) are normal. To me it seems that apache2 is eating all the memory, how could I discover why? :( :(
thank you
Code:
top - 12:37:23 up 2:39, 1 user, load average: 0.00, 0.01, 0.05
Tasks: 82 total, 1 running, 80 sleeping, 0 stopped, 1 zombie
Cpu(s): 0.0%us, 0.0%sy, 0.0%ni, 99.9%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 509084k total, 289324k used, 219760k free, 22820k buffers
Swap: 262140k total, 0k used, 262140k free, 158580k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3913 www-data 20 0 56320 28m 4648 S 0 5.7 0:02.16 apache2
1994 mysql 20 0 129m 24m 6168 S 0 4.9 0:04.79 mysqld
3972 www-data 20 0 45004 17m 4504 S 0 3.5 0:01.00 apache2
4030 www-data 20 0 44504 15m 3508 S 0 3.2 0:00.15 apache2
3340 root 20 0 35980 9852 5784 S 0 1.9 0:01.22 apache2
4057 www-data 20 0 36316 6268 1976 S 0 1.2 0:00.00 apache2
4024 www-data 20 0 36460 5708 1320 S 0 1.1 0:00.01 apache2
3978 www-data 20 0 36460 5696 1292 S 0 1.1 0:00.04 apache2
4007 www-data 20 0 36480 5696 1336 S 0 1.1 0:00.01 apache2
4026 www-data 20 0 36452 5552 1296 S 0 1.1 0:00.00 apache2
4032 www-data 20 0 36460 5432 1216 S 0 1.1 0:00.01 apache2
4058 www-data 20 0 36460 5432 1216 S 0 1.1 0:00.00 apache2
4059 www-data 20 0 36460 5432 1216 S 0 1.1 0:00.00 apache2
3904 root 20 0 14428 4672 1476 S 0 0.9 0:02.98 ruby
2261 root 20 0 8408 2764 2188 S 0 0.5 0:00.03 sshd
2033 root 20 0 5600 2120 1712 S 0 0.4 0:00.00 sshd
2319 finalsay 20 0 4724 2040 1544 S 0 0.4 0:01.24 bash
1 root 20 0 2724 1596 1204 S 0 0.3 0:00.57 init
3903 root 20 0 4060 1580 1384 S 0 0.3 0:00.00 ApplicationPool
2318 finalsay 20 0 8540 1408 828 S 0 0.3 0:01.21 sshd
1953 syslog 20 0 28452 1260 968 S 0 0.2 0:00.05 rsyslogd
4056 finalsay 20 0 2568 1056 816 R 0 0.2 0:00.17 top
1978 ntpd 20 0 3496 924 676 S 0 0.2 0:00.02 ntpd
1977 root 20 0 3600 908 644 S 0 0.2 0:00.00 ntpd |
|
| Back to top |
|
Guspaz
Joined: 26 May 2009
Posts: 1150
Location: Montreal, QC
|
| Posted: Fri Dec 23, 2011 1:33 pm Post subject: |
|
|
| Looks like Apache is using up about 115MB of RAM, for a machine that will be primarily a web server that doesn't seem unreasonable. But a lot of your Apache processes are showing small memory usage that makes me think they haven't really done any PHP work yet. But be sure that you've configured Apache properly so that it won't balloon under load and take out your site. Apache's default configuration can, under heavy load, consume 10GB of RAM easily, if you let it. |
|
| Back to top |
|
obs
Joined: 07 Mar 2010
Posts: 1403
Location: Earth
|
| Posted: Fri Dec 23, 2011 1:36 pm Post subject: |
|
|
| Search the forums for "apache max clients" there's plenty of posts out there for tuning apache. Also read this http://library.linode.com/troubleshooting/memory-networking#sph_apache-2-low-memory-settings |
|
| Back to top |
|
mottalrd
Joined: 23 Dec 2011
Posts: 16
|
| Posted: Sat Dec 24, 2011 2:18 am Post subject: |
|
|
| Thank you, I am going to explore the pointers that you gave me :) |
|
| Back to top |
|
| |
|