LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-26-2012, 08:50 PM   #1
kb2tfa
Member
 
Registered: Oct 2006
Location: Philadelphia PA
Distribution: Ubuntu 14.04
Posts: 48

Rep: Reputation: 7
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
 
Old 03-26-2012, 10:22 PM   #2
speck
Member
 
Registered: Nov 2001
Location: California
Distribution: Slackware 14.1
Posts: 272

Rep: Reputation: 54
The following command should tell you approximately how much memory you're using in megabytes.
Quote:
free -m | grep 'buffers/cache' | cut -d' ' -f10
 
  


Reply

Tags
apache2, mysql, php, ubuntu+11.04


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux shared memory segment access problem and x86 Virtual Memory layout. regmee Linux - Kernel 1 08-23-2008 12:11 AM
LAMP server memory allocations twlilinux Linux - Server 2 07-09-2008 11:19 AM
Difference between resident memory,shared memory and virtual memory in system monitor mathimca05 Linux - Newbie 1 11-11-2007 04:05 AM
is this normal/memory wr3ck3d Linux - General 10 06-28-2003 09:35 AM
Help!?! RH 8 Memory Mapping -High Memory-Virtural Memory issues.. Merlin53 Linux - Hardware 2 06-18-2003 04:48 PM


All times are GMT -5. The time now is 04:57 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration