LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   memory problem. is it normal for lamp to use this much memory? (http://www.linuxquestions.org/questions/linux-newbie-8/memory-problem-is-it-normal-for-lamp-to-use-this-much-memory-936582/)

kb2tfa 03-26-2012 08:50 PM

memory problem. is it normal for lamp to use this much memory?
 
ubuntu natty
apache2 / php / mysql / wordpress

i just upgraded to apache2 an my memory is exploading. i have a 512k memory vps with burstable to 1gig.

i'm currently running over limit with just one website and no load.

does this sound right. could it be a problem with the php or mysql config as far a memory goes?

here is my 'top'
Code:

Tasks:  21 total,  1 running,  20 sleeping,  0 stopped,  0 zombie
Cpu(s):  0.0%us,  0.0%sy,  0.0%ni,100.0%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:    946344k total,  581656k used,  364688k free,        0k buffers
Swap:        0k total,        0k used,        0k free,        0k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
    1 root      18  0 23440 1636 1316 S    0  0.2  0:00.43 init
 1179 root      15  0 18888 1016  784 S    0  0.1  0:00.00 cron
 1202 syslog    15  0 12536  772  600 S    0  0.1  0:00.00 syslogd
 1220 root      15  0 49424 2668 2108 S    0  0.3  0:00.01 sshd
17854 mysql    15  0  249m  26m 7436 S    0  2.8  0:00.45 mysqld
18124 root      18  0  124m 9840 5328 S    0  1.0  0:00.07 apache2
18404 root      18  0 70768 3392 2640 S    0  0.4  0:00.09 sshd
18416 root      15  0 17976 2048 1552 S    0  0.2  0:00.02 bash
18431 root      16  0 70768 3376 2628 S    0  0.4  0:00.02 sshd
19467 root      16  0 12564  928  756 S    0  0.1  0:00.00 sftp-server
19527 www-data  15  0  165m  39m 4684 S    0  4.3  0:00.42 apache2
19528 www-data  15  0  163m  37m 4208 S    0  4.1  0:00.35 apache2
19530 www-data  15  0  167m  40m 4220 S    0  4.4  0:00.71 apache2
19531 www-data  15  0  153m  29m 3788 S    0  3.2  0:00.29 apache2
19533 www-data  17  0  150m  28m 3268 S    0  3.1  0:00.23 apache2
19534 www-data  15  0  156m  32m 3240 S    0  3.5  0:00.25 apache2
19540 www-data  18  0  169m  42m 4288 S    0  4.6  0:01.73 apache2


speck 03-26-2012 10:22 PM

The following command should tell you approximately how much memory you're using in megabytes.
Quote:

free -m | grep 'buffers/cache' | cut -d' ' -f10


All times are GMT -5. The time now is 09:38 AM.