LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-19-2015, 08:43 PM   #1
devUnix
Member
 
Registered: Oct 2010
Posts: 606

Rep: Reputation: 59
Lightbulb Linux Interview Question: Users are Experiencing Slowness while Accessing a Service


Hi,


I have often been confronted with this question:
We have an application, let's say it runs on Apache, which seems to be responding slower than usual. Our users are experiencing a considerable delay in responses from the application or the server that is serving / hosting it. Frequent time-outs, or the reports will not show up, etc.

How would you troubleshoot this issue?
I have been asked that question in almost in every interview I have attended for the role of a Linux System Administrator or Production Support; and that would be the first question on their list.

I would usually answer it in these words:
[1] Well, I can quickly check the system health by running uptime, top, ps, free, df -h, etc. commands to make sure that the output from those commands is looking good and that there is no unusual system load (load average) or the system is not running out of memory (RAM & Swap), and so on.

[2] If the system health seems okay then I can check the network side and see that there is no spike in the network bandwidth. I can use, for example, ping command to check the connectivity and also ifconfig's output to look for network traffic related errors / problems.

[3] Whether other systems connecting to this server are also experiencing the same problem or is there any particular client / workstation that you are observing the slowness while accessing the application?

[4] If most users / clients connecting to this server / application are impacted and the system health of the server and the network connectivity all look okay then there could be something wrong with the configuration of your application itself. Maybe, a new version of your application was deployed? Some updates / changes were made to it recently? The application logs and the Apache logs may reveal some problem in here?
I really cannot think of any better answer. Could you please help me refine it or share your strategy?

Last edited by devUnix; 07-19-2015 at 08:45 PM.
 
Old 07-20-2015, 01:29 AM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,218

Rep: Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309
I'm not a sysadmin myself, and I have not had to deal with this professionally, but here are my ideas.

First, can I assume that it's just that application that's slow, and not the network in general? (Ask, because this is very important!)

If it's just that application, you should probably gather information (from the MySQL logs, etc) to file a support ticket with the vendor. Is there a sequence of steps that causes it to time out each time, or is it more random? If you can get a sequence of steps, then file a ticket. Ideally, you should try to set up a local instance of that application on your workstation and try to reproduce the problem there, but if you can't do that then you still file the ticket.

I'd also suggest making sure that the routing for that application is set up correctly (the domain name goes to the closest local instance and not one in another continent).

This could also happen if the web server has a failing hard disk, so that should probably be checked.

Check if there are a lot of TCP errors and/or a high retransmission rate when connecting to that application.

Run a traceroute to check if one of the machines that the responses and requests are going through is causing the delay. This relates to routing.

If you have physical access to the server, confirm that the network cables are physically okay and don't look like they obviously need to be replaced.

Last edited by dugan; 07-20-2015 at 02:02 AM.
 
Old 07-20-2015, 12:01 PM   #3
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,879
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
I think you're showing a pretty complete and inclusive set of analytical thinking.
  1. Anything wrong with server performance, memory, or processes?
  2. Anything wrong with one given station, or a certain set of stations? Or a specific type of traffic?
  3. Anything wrong with the network or hardware?
  4. And check all logs as well as run a few diagnostic programs.
What gives you the impression that these answers are running short?

And if someone indicates that you've missed the boat, do you inquire where they feel the answer was inadequate? I would ask them that question.

The interview shouldn't all be about this one question by the way. I'm hoping that your experiences aren't such that you get this question, that's it, you get a minor "Hmmm ..." back and then they walk you out. Actually, if that happens, I'd probably not want to work for them anyways.

Last edited by rtmistler; 07-20-2015 at 12:03 PM.
 
1 members found this post helpful.
Old 07-22-2015, 06:36 AM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,635
Blog Entries: 4

Rep: Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931Reputation: 3931
Another thing that I would suggest ... in any system configuration ... is that you should be using change control, via git, and be linking that to an issue-tracking system. Lots of times, "something changed," but there's no reliable way to know what the change was, or why it was made. Also, the change might need to be made on several different systems at a time, and there's no way to do that except "by hand." Well, git provides a much better way to do that.
 
1 members found this post helpful.
Old 07-27-2015, 01:17 PM   #5
sudowtf
Member
 
Registered: Nov 2013
Posts: 205

Rep: Reputation: 46
Quote:
Originally Posted by sundialsvcs View Post
[...]using change control, via git[...]
@sundialsvcs very interesting use of git. I've been wanting implement git for more use cases, say for example Libreoffice Docs. This is a good great one too. What specifically would you add to a git project for this apache scenario, just the config files or more?

Last edited by sudowtf; 07-27-2015 at 01:19 PM.
 
  


Reply

Tags
interview, question


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Best hosting service for Linux users. Lola Kews Linux - General 10 09-28-2013 04:47 AM
Linux Sys admin Interview Question jbhrfx Linux - General 10 09-08-2013 08:19 AM
linux interview question with Answer ranakumar.ahm@gmail.com Linux - Newbie 2 11-12-2011 07:26 PM
LXer: Rhapsody: A Music Service for Linux Users LXer Syndicated Linux News 3 01-16-2008 01:57 PM
Question about mounting filesystems, and accessing them as regular users... bunyan Red Hat 19 03-03-2005 05:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:08 PM.

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
Open Source Consulting | Domain Registration