LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 11-15-2012, 07:26 AM   #1
devUnix
Member
 
Registered: Oct 2010
Location: Bengaluru, India
Distribution: RHEL 5.1 on My PC, & SunOS / Sun Solaris, RHEL, SuSe, Debian, FreeBSD and other Linux flavors @ Work
Posts: 557

Rep: Reputation: 46
Figuring out Causes for Server Slowness


Hi All,


Let's say we see a Linux Server experiencing slowness in responding to requests, as it would do if you were running Apache/Tomcat on it, for instance. We check the Load Average, CPU Utilization, and RAM/SWAP Utilization, etc. What else can we check to figure out the slowness?

I was asked the question in an interview for Linux Administration and the interviewer said he was not satisfied with the answer I provided. He wanted an answer to the part shown in Italic above. I told him we could use Process Tree or trace the process / application as to what other system calls it is making. He wanted to know what else we could check, if CPU/Memory utilization was not causing the slowness on the server side?

One more thing, he asked, is it safe to kill Zombie processes? My answer was "Yes!" What else would you do with a Zombie process, by the way? Do we keep them as they are?


Thanks for your insight on the above discussion.

Last edited by devUnix; 11-15-2012 at 07:28 AM.
 
Old 11-15-2012, 08:38 AM   #2
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Undecided
Posts: 3,618
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by devUnix View Post
...if CPU/Memory utilization was not causing the slowness on the server side?...
Then I'd personally check Disk-related processes, since those 3 make up the top 3 bottleneck causes.
CPU, Memory, and Disk.
 
1 members found this post helpful.
Old 11-15-2012, 09:10 AM   #3
devUnix
Member
 
Registered: Oct 2010
Location: Bengaluru, India
Distribution: RHEL 5.1 on My PC, & SunOS / Sun Solaris, RHEL, SuSe, Debian, FreeBSD and other Linux flavors @ Work
Posts: 557

Original Poster
Rep: Reputation: 46
Quote:
Originally Posted by Habitual View Post
Then I'd personally check Disk-related processes, since those 3 make up the top 3 bottleneck causes.
CPU, Memory, and Disk.
Really a good point!
 
Old 11-15-2012, 09:47 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,675
Blog Entries: 54

Rep: Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953
It's hard to answer the question without the benefit of knowing the level of professionalism of the company. If the company adheres to a methodology that includes release management you expect it to maintain separate production and staging areas. Testing and quality assurance being the responsibility of both the development group and whoever does release management, this ensures no release is installed in the staging area w/o it being signing off based on whatever quality control parameters are used. (On a side note if development is unorganized and free to inject whatever new tricks they learned the result can only be utter crap. Problem is utter crap can rear its ugly head very subtly and days or weeks after deployment. So due to experience whenever there were deployment problems my first reflex was to blame the developer group.)

Practically speaking this means you have two environments for behaviour comparison, and given low level bottlenecks (SAR) should be considered the most basic metrics monitored anyway, this leaves you with application level performance profiling. Apache, BEA, Sun and JBoss all have toolkits to help investigate performance and memory leak issues and if you can't find what you need there's always companies willing to sell you some tools.
...would be my reply.
 
Old 11-19-2012, 05:56 AM   #5
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 867
Blog Entries: 2

Rep: Reputation: 216Reputation: 216Reputation: 216
Perhaps he was expecting sar,vmstat,iostat,top kind of answers.
 
Old 11-21-2012, 12:53 AM   #6
arun5002
Member
 
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 549
Blog Entries: 5

Rep: Reputation: Disabled
1.Monitor the amount of hits by apache server for particular time schedule and check whether the server of capable of handling the huge request

grep -c "date" /etc/httpd/log/access.log


2.Check the memory consumption & Harddisk usage.Check whether its using swap memory .Whenever server start using swap memory eventually server leads to slowness

3.Check the input/output statitics using iostat

4.Its always safe to keep zombie process low as possible because which eventually utilise the resource of server and leads to server slowness

# ps -elf | grep Z -To list Zombie process

S : sleeping
R : running
D : waiting (over het algemeen voor IO)
T : gestopt (suspended) of getrasseerd
Z : zombie (defunct)


4.If its Apache check .

* check whether log resolvation happens by hostname instead of ipadress .Name resolvation can increase the load of server
* check whether mod deflate module is enable to filecompression take place between server to client browser to reduce bandwidth
* we can even optimise the slowness of Apache Server using apache module like mod_cache to which gives to faster response time of the request
*Check whether Apache Tomcat is updated on regular basis

Last edited by arun5002; 11-21-2012 at 01:19 AM.
 
  


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 rectify Linux server slowness, maybe related to swap usage? linux273 Linux - Server 2 05-21-2012 02:46 PM
Figuring out what the kernel is doing? xaos5 Debian 18 04-06-2011 03:38 AM
[SOLVED] Guys need your assistance in figuring out the active CPU enabled in the server srajeshkumar Linux - Server 1 03-31-2011 07:07 AM
setting up new RH server, trouble figuring out partitions (naive about fdisk) eje4 Linux - Newbie 1 07-27-2009 08:21 PM
Server Utilization - Slowness sijojoseph07 Linux - General 4 11-27-2006 09:22 AM


All times are GMT -5. The time now is 08:22 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration