Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-02-2008, 04:19 PM   #1
Registered: Sep 2007
Posts: 61

Rep: Reputation: 15
Can someone analyze this command?

Hey Guys

Well my server seems to be getting beat up a bit. We get around 800-1000 unique hits a day and can get a load average up to 4-5 which makes the site disgustingly slow. I think it may me a ram issue, although im not too sure. It seems that there are alot of mysqld and apache processes running takign up alot of memory, should i be limiting the amount of those processes?

Ive attached a pic to show you the results from 'top' command :
Old 05-02-2008, 04:36 PM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
Generally I'd be agreeing with RAM. you can see that you've swapped out over 300mb of data and there's very little spare physical memory there, even when you can see the load at that time has dropped well down to 0.66. With modern RAM prices you should never expect to be using swap to any real amount, and there's certainly a case for adding more physical RAM. Same time though, 1000 unique hit's isn't hugely offensive, unless it peaks at certain times. Also it naturally depends what the web app itself is actually doing, but with all the mysql activity there's alway room for some bad programming there. if this is your app, you could look to factor in a caching tool like memcached, but then that in itself requires RAM for object storage, but would ease up on additional CPU cycles enormously if the DB fetches are repeatitive.
Old 05-02-2008, 04:58 PM   #3
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,172

Rep: Reputation: 3344Reputation: 3344Reputation: 3344Reputation: 3344Reputation: 3344Reputation: 3344Reputation: 3344Reputation: 3344Reputation: 3344Reputation: 3344Reputation: 3344
Keep an eye on that "wait" percentage - it will almost certainly be high when you experience slowdowns.
Quick-fix is more memory - the system will then be able to cache more disk I/O, and hopefully stop swapping. Next, start looking at the disk configuration. Isolate your "system" (root,swap,logging) from your application data - that means separate disks/pathing if you can. Nice fast disks and hardware striping always help - pity about the cost.

Last edited by syg00; 05-02-2008 at 05:02 PM.
Old 05-02-2008, 05:27 PM   #4
Registered: Sep 2007
Posts: 61

Original Poster
Rep: Reputation: 15
Thanks alot guys - appreciate it. Am looking into it further


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
How to analyze logs? Maarten_Holland Linux - Newbie 4 05-31-2006 03:45 PM
what program do you use to analyze your logs ? ddaas Linux - General 3 03-06-2005 09:21 AM
analyze the port list-----help!!!!! Cyrus Linux - Security 11 03-03-2004 01:13 PM
MYSQL analyze logs mikeshn Programming 0 11-13-2003 03:48 PM
Analyze this! paintedreality Linux - Hardware 5 02-16-2003 10:47 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:03 AM.

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