Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Dec 23, 2011 1:42 pm 
Offline
Senior Newbie

Joined: Fri Dec 23, 2011 9:52 am
Posts: 18
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 


Top
   
 Post subject:
PostPosted: Fri Dec 23, 2011 2:33 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
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.


Top
   
 Post subject:
PostPosted: Fri Dec 23, 2011 2:36 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Search the forums for "apache max clients" there's plenty of posts out there for tuning apache. Also read this http://library.linode.com/troubleshooti ... y-settings

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Sat Dec 24, 2011 3:18 am 
Offline
Senior Newbie

Joined: Fri Dec 23, 2011 9:52 am
Posts: 18
Thank you, I am going to explore the pointers that you gave me :)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group