LinuxQuestions.org
Help answer threads with 0 replies.
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 05-02-2008, 05:19 PM   #1
christopher_c
Member
 
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 : http://i30.tinypic.com/13z3cll.jpg
 
Old 05-02-2008, 05:36 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
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, 05:58 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,834

Rep: Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820
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 06:02 PM.
 
Old 05-02-2008, 06:27 PM   #4
christopher_c
Member
 
Registered: Sep 2007
Posts: 61

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


Reply


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


All times are GMT -5. The time now is 10:55 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration