Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm running a pretty standard CMS site on a VPS with almost 500MB of RAM.

I've been consistently pushing the memory limits of the server, and I can't imagine how with a standard site (it's not doing anything like huge traffic).

When I run top I see a couple php5.cgi processes consistently eating up to 50% of CPU and 8-10% of RAM. I don't think there's any scripts or anything running that needs these-- the site should be running PHP5 under fastcgi.

Any idea what these processes are doing, where they come from and how to stop them?

CMS: Joomla

[ps]$ free -m
             total       used       free     shared    buffers     cached
Mem:           606        487        118          0          0        336
-/+ buffers/cache:        151        454
Swap:            0          0          0

Output from top:

Tasks:  40 total,   1 running,  38 sleeping,   0 stopped,   1 zombie
Cpu(s): 91.4%us,  3.8%sy,  4.2%ni,  0.0%id,  0.0%wa,  0.0%hi,  0.6%si,  0.0%st
Mem:    620800k total,   499080k used,   121720k free,        0k buffers
Swap:        0k total,        0k used,        0k free,   340304k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
27782 myuser    20   0  259m  48m 8576 S   35  8.1   1:05.99 php5.cgi
11962 apache    20   0     0    0    0 Z    0  0.0   0:00.02 apache2-p <defunct>
    1 root      20   0  8404  768  632 S    0  0.1   6:38.83 init
 2054 root      20   0  116m  968  576 S    0  0.2   1:17.67 rsyslogd
 2071 daemon    20   0 18764  360  200 S    0  0.1   0:00.04 atd
 2075 root      20   0  6180  136   32 S    0  0.0   0:00.00 courierlogger
 2076 root      20   0 22796  188   32 S    0  0.0   0:00.11 authdaemond
 2080 root      20   0 31212  456  244 S    0  0.1   0:00.71 authdaemond
 2083 root      20   0  6180  100    4 S    0  0.0   0:00.00 courierlogger
 2084 root      20   0 10384  172   60 S    0  0.0   0:00.00 couriertcpd
 2095 root      20   0  6180   96    4 S    0  0.0   0:00.00 courierlogger
 2096 root      20   0 10384  172   60 S    0  0.0   0:00.00 couriertcpd
 2102 root      20   0  6180  112    8 S    0  0.0   0:00.47 courierlogger
 2103 root      20   0 10384  264  120 S    0  0.0   0:00.71 couriertcpd
 2118 root      20   0  6180   96    4 S    0  0.0   0:00.00 courierlogger
 2119 root      20   0 10384  168   60 S    0  0.0   0:00.00 couriertcpd
 2143 root      20   0 20956  624  380 S    0  0.1   0:10.19 cron
share|improve this question
    
Not nearly enough detail to help you. For starters, you could list the file names of the php scripts, what kind of CMS you use and if you experience any real performance problems or just think you have a problem (please post the output of free -m).. You see, in most cases having nearly no free RAM is actually a good thing, please refer to linuxatemyram.com to understand why. –  SvW Feb 23 '12 at 17:33
    
@SvenW-- thanks. Added more details. –  user101289 Feb 23 '12 at 17:48

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.