Atricle Dump
#1 in Business Subscribe Email Print

You are here: Home > Internet and Businesses Online > Web Development > Key Factors to Find Resource BottleNeck in Linux Server Overloading

Tags

  • mtotal
  • opportunities
  • uptime
  • common bottleneck
  • problem identified
  • furthur slower

  • Links

  • Solar Panels
  • Heart Rate Monitors - What Is A Heart Rate Monitor Or HRM?
  • 5 Ways to Market the UNSOLD Books Stacked In Your Garage
  • Atricle Dump - Key Factors to Find Resource BottleNeck in Linux Server Overloading

    CD Business Card Duplication
    CD business card is a relatively new concept. It is basically an electronic version of your business card and can be used for a variety of purposes. There are basically two ways you can get your own CD business card. You can either do it yourself or use CD business card duplication.If you want to leave a lasting impression with your clients or potential customers, a CD business card can go a long way. You can put much more information on a CD than a small business card. You can use images, video to bring across your business offer much better. Most people will throw away business card but will not throw away CD business cards since CD business card have more value than a business card.There are two ways to create CD business card. The first way is to burn the CD yourself. The problem with that it is tedious and time wasting.A much better way is to make use of CD business card duplication services. You only need to
    /p>

    # hdparm -Tt /dev/sda

    The output:

    /dev/sda:

    Timing cached reads: 1484 MB in 2.01 seconds = 739.00 MB/sec

    Timing buffered disk reads: 62 MB in 3.00 seconds = 20.66 MB/sec

    It was awesome at the buffer-cache reads, most probably because of the disk's onboard cache, however, buffered disk reads is just at 20.66 MB / sec. Anything below 25MB is something you should worry about.

    3. CPU power is all consumed?

    # top

    Check the top output to find out if you're using too much CPU power. You should be looking the value under idle besides each CPU entry. Anything below 45% is something you should really worry about.

    III) Problem identified, What's the solution?

    To wrap it up, let me offer a few solutions for each problem:

    A global solution to all problems is to optimize MySQL, and Webserver including PHP/Perl scripts and queries. Or the least you can do is to optimize Apache and MySQL server parameters to perform better.

    1. Too much CPU usage

    In "ps -auxf" or "top" look for processes that use too much CPU. If it's HTTP or MySQL, you better optimize your scripts and queries

    Scarce Markets Or Scarce Salesmen?
    Whenever choice is limited or threatened, the human need to maintain a share of the limited commodity makes us crave it even more. Scarcity increases the value of any product or service. Scarcity drives people to action, making us act quickly for fear of missing out on an opportunity.Potentially losing something before we've even had an opportunity to possess it drives people to action. We don't want to miss out on anything we could have had. We want to get around any restriction placed upon us. We feel uptight and want back our freedom. This causes tension and unrest. The Law of Scarcity not only pertains to physical products, but also to time, information, price, and knowledge. We want to be the ones to own the rare items or to get the last widget on the shelf. The more the scarcity of an item increases, the more the item increases in value, the greater the urge to own it.Consider how the Law of Scarcity made the Beanie Babi

    It's very common, despite of the affordable hardware, to have load issues on the server. There can be a number of reasons for high load on the server such as, inadequate RAM/CPU, slower hard disk drives, or just unoptimized software. This article will help you identify what's the bottleneck and where do you need to invest on. Please, however, do not take it as a replacement of professional advice/service. You should always seek professional service if you can afford the costs associated.

    I) First of all, are you really in trouble?

    Usually people look for load in control panels, using "uptime" or "top" command. You can probably execute the "uptime" command in your root shell to find out what's the load, but I would like you to use "top" for the moment (pretty please). This will help you identify how many CPUs are being reported*. You should be able to see something like cpu00, cpu01, etc. A load of ~1 for each cpu is reasonable. For example, you're fine if the load's 3.50 and you have 4 CPUs.

    Another thing to consider while looking at the load via uptime or top, is to understand what it shows. For instance: (on a 2HT cpus server, reported as 4)

    18:30:55 up 17 days, 5:17, 2 users, load average: 4.76, 2.97, 2.62

    The first part (3.76) shows the load average in the last 5 mins, while the second (2.97) and third (2.62) shows averages of 10 and 15 mins respectively. It's probably a spike here which I wouldn't be too worried about (a bit carefree?), but if you are, then just read on!

    Pretty happy about how you were able to identify that your server is really overloaded? Sorry to hear that, but you never know because sometimes servers are able to handle much more load than the load shown. The load averages aren't so accurate afterall and cannot always be the ultimate deciding factor. Confused? It was just some technical information you don't need to be so bothered about. Move ahead if your loads are something to worry over.

    * note the usage of term "reported". I have used this term because a P4 CPU having HT technology will be reported as 2 even if you know your server has one CPU.

    II) Where's the problem?

    To identify the problem, you need to run a series of logical tests (Ok, it isn't as scary as it may sound). All you need is some free time, probably 30-45 mins, and root access to your server (expect no magic ;)). Ready to start? Let's go!

    Note: Perform the checks multiple times, to reach a fine conclusion.

    1. Check for RAM (most common bottleneck!).

    # free -m

    The output should look similar to this:

    # free -m

    total used free shared buffers cached Mem: 1963 1912 50 0 28 906 -/+ buffers/cache: 978 985 Swap: 1027 157 869

    Any reaction like, "Ohh Gosh, almost all the RAM is used up."? Don't panic. Have a look at the buffers/cache that says "985" mb of RAM is still free in buffers. As long as you have enough memory in the buffers, and your server isnt't using much swap, you're pretty fine on RAM. Your server starts to use SWAP (much like Pagefile), which is part of your disk mapped as memory but it is comparatively very slow and can furthur slower down your system if you have a busy hard disk (which I doubt you wouldn't if you're using so much RAM). In short, at least 175mb available in buffers and no more than 200mb swap.

    If RAM is the issue, you should probably look into optimizations on your PHP/Perl scripts, MySQL queries + server, and Apache.

    2. Check if I/O (input/output) usage is excessive

    If there are too many read/write requests on a single hard disk drive, it will become slow and you'll have to upgrade it to a faster drive (with more RPM and cache). The alternate option to a single faster drive is splitting the load onto multiple drives by spreading the most request content onto multiple drives, which can be easily accomplished using "symlinks" (soft links to files/folders). To identify, if your I/O issue is making your server lag:

    # top

    Read the output under "iowait" section, for each CPU. In ideal situations, it should be near to 0%. If you do however are scrutinizing at time of a load spike, consider rechecking these values multiple times to reach a fine conclusion. Anything above 15% is worrysome. Next, you can check the speed of your hard disk drive to see if it's really lagging:

    If you do know your hard disk exists on /dev/sda or /dev/hda, just perform the following. Or execute "df -h" command to check which is the drive that your data resides on.

    # hdparm -Tt /dev/sda

    The output:

    /dev/sda:

    Timing cached reads: 1484 MB in 2.01 seconds = 739.00 MB/sec

    Timing buffered disk reads: 62 MB in 3.00 seconds = 20.66 MB/sec

    It was awesome at the buffer-cache reads, most probably because of the disk's onboard cache, however, buffered disk reads is just at 20.66 MB / sec. Anything below 25MB is something you should worry about.

    3. CPU power is all consumed?

    # top

    Check the top output to find out if you're using too much CPU power. You should be looking the value under idle besides each CPU entry. Anything below 45% is something you should really worry about.

    III) Problem identified, What's the solution?

    To wrap it up, let me offer a few solutions for each problem:

    A global solution to all problems is to optimize MySQL, and Webserver including PHP/Perl scripts and queries. Or the least you can do is to optimize Apache and MySQL server parameters to perform better.

    1. Too much CPU usage

    In "ps -auxf" or "top" look for processes that use too much CPU. If it's HTTP or MySQL, you better optimize your scripts and queries,

    Affiliate Revenue
    What is Affiliate Revenue?Affiliate Revenue is a great form of income whether you are just beginning your Internet Marketing Career to earn some extra cash or whether you are a seasoned professional to continue creating Multiple Streams of Income.Very briefly someone who has produced a product allows people on the internet to promote their product for them and they pay commissions per sale to the then known ‘’affiliate’’.The other way to see it more clearly is that you promote and sell someone else’s product online and they pay you a commission for doing so.It is a great deal for both parties, a win win situation, and has proven to be a very profitable source of income for many people today online.How do I get Affiliate Revenue?There are a number of Affiliate Opportunities online today and they all pay out differing commissions. Don’t be fooled though by just trying to find the ones that pay out ‘’75%’’ com
    orted as 4)

    18:30:55 up 17 days, 5:17, 2 users, load average: 4.76, 2.97, 2.62

    The first part (3.76) shows the load average in the last 5 mins, while the second (2.97) and third (2.62) shows averages of 10 and 15 mins respectively. It's probably a spike here which I wouldn't be too worried about (a bit carefree?), but if you are, then just read on!

    Pretty happy about how you were able to identify that your server is really overloaded? Sorry to hear that, but you never know because sometimes servers are able to handle much more load than the load shown. The load averages aren't so accurate afterall and cannot always be the ultimate deciding factor. Confused? It was just some technical information you don't need to be so bothered about. Move ahead if your loads are something to worry over.

    * note the usage of term "reported". I have used this term because a P4 CPU having HT technology will be reported as 2 even if you know your server has one CPU.

    II) Where's the problem?

    To identify the problem, you need to run a series of logical tests (Ok, it isn't as scary as it may sound). All you need is some free time, probably 30-45 mins, and root access to your server (expect no magic ;)). Ready to start? Let's go!

    Note: Perform the checks multiple times, to reach a fine conclusion.

    1. Check for RAM (most common bottleneck!).

    # free -m

    The output should look similar to this:

    # free -m

    total used free shared buffers cached Mem: 1963 1912 50 0 28 906 -/+ buffers/cache: 978 985 Swap: 1027 157 869

    Any reaction like, "Ohh Gosh, almost all the RAM is used up."? Don't panic. Have a look at the buffers/cache that says "985" mb of RAM is still free in buffers. As long as you have enough memory in the buffers, and your server isnt't using much swap, you're pretty fine on RAM. Your server starts to use SWAP (much like Pagefile), which is part of your disk mapped as memory but it is comparatively very slow and can furthur slower down your system if you have a busy hard disk (which I doubt you wouldn't if you're using so much RAM). In short, at least 175mb available in buffers and no more than 200mb swap.

    If RAM is the issue, you should probably look into optimizations on your PHP/Perl scripts, MySQL queries + server, and Apache.

    2. Check if I/O (input/output) usage is excessive

    If there are too many read/write requests on a single hard disk drive, it will become slow and you'll have to upgrade it to a faster drive (with more RPM and cache). The alternate option to a single faster drive is splitting the load onto multiple drives by spreading the most request content onto multiple drives, which can be easily accomplished using "symlinks" (soft links to files/folders). To identify, if your I/O issue is making your server lag:

    # top

    Read the output under "iowait" section, for each CPU. In ideal situations, it should be near to 0%. If you do however are scrutinizing at time of a load spike, consider rechecking these values multiple times to reach a fine conclusion. Anything above 15% is worrysome. Next, you can check the speed of your hard disk drive to see if it's really lagging:

    If you do know your hard disk exists on /dev/sda or /dev/hda, just perform the following. Or execute "df -h" command to check which is the drive that your data resides on.

    # hdparm -Tt /dev/sda

    The output:

    /dev/sda:

    Timing cached reads: 1484 MB in 2.01 seconds = 739.00 MB/sec

    Timing buffered disk reads: 62 MB in 3.00 seconds = 20.66 MB/sec

    It was awesome at the buffer-cache reads, most probably because of the disk's onboard cache, however, buffered disk reads is just at 20.66 MB / sec. Anything below 25MB is something you should worry about.

    3. CPU power is all consumed?

    # top

    Check the top output to find out if you're using too much CPU power. You should be looking the value under idle besides each CPU entry. Anything below 45% is something you should really worry about.

    III) Problem identified, What's the solution?

    To wrap it up, let me offer a few solutions for each problem:

    A global solution to all problems is to optimize MySQL, and Webserver including PHP/Perl scripts and queries. Or the least you can do is to optimize Apache and MySQL server parameters to perform better.

    1. Too much CPU usage

    In "ps -auxf" or "top" look for processes that use too much CPU. If it's HTTP or MySQL, you better optimize your scripts and queries

    Amake Money on eBay - Deal Finder can Lead Your to Buying Opportunities
    The eBay marketplace is growing bigger than ever. With that growth has come many tools to support buyers and sellers alike. Sellers can amake money on eBay by being aware of buying opportunities that exist on eBay itself. While all of the buying opportunities may not fit their eBay businesses, invest the time to find out more.One way to amake money on eBay is using the ‘eBay Deal Finder’ tool. This great tool can lead buyers to valuable buying opportunities that are yet to generate even a single bid. For eBay sellers, finding some great items for resell is also a real possibility.It is easy to make use of this tool. Simply go to the eBay Homepage. About 2/3 of the way down in the center you will find ‘eBay Deal Finder’. Click on deals ending now! This will take you to the eBay Deal Finder page. This is your chance to amake money on eBay. Remember that all listing have received zero bids!There are some specific rules associated
    bly 30-45 mins, and root access to your server (expect no magic ;)). Ready to start? Let's go!

    Note: Perform the checks multiple times, to reach a fine conclusion.

    1. Check for RAM (most common bottleneck!).

    # free -m

    The output should look similar to this:

    # free -m

    total used free shared buffers cached Mem: 1963 1912 50 0 28 906 -/+ buffers/cache: 978 985 Swap: 1027 157 869

    Any reaction like, "Ohh Gosh, almost all the RAM is used up."? Don't panic. Have a look at the buffers/cache that says "985" mb of RAM is still free in buffers. As long as you have enough memory in the buffers, and your server isnt't using much swap, you're pretty fine on RAM. Your server starts to use SWAP (much like Pagefile), which is part of your disk mapped as memory but it is comparatively very slow and can furthur slower down your system if you have a busy hard disk (which I doubt you wouldn't if you're using so much RAM). In short, at least 175mb available in buffers and no more than 200mb swap.

    If RAM is the issue, you should probably look into optimizations on your PHP/Perl scripts, MySQL queries + server, and Apache.

    2. Check if I/O (input/output) usage is excessive

    If there are too many read/write requests on a single hard disk drive, it will become slow and you'll have to upgrade it to a faster drive (with more RPM and cache). The alternate option to a single faster drive is splitting the load onto multiple drives by spreading the most request content onto multiple drives, which can be easily accomplished using "symlinks" (soft links to files/folders). To identify, if your I/O issue is making your server lag:

    # top

    Read the output under "iowait" section, for each CPU. In ideal situations, it should be near to 0%. If you do however are scrutinizing at time of a load spike, consider rechecking these values multiple times to reach a fine conclusion. Anything above 15% is worrysome. Next, you can check the speed of your hard disk drive to see if it's really lagging:

    If you do know your hard disk exists on /dev/sda or /dev/hda, just perform the following. Or execute "df -h" command to check which is the drive that your data resides on.

    # hdparm -Tt /dev/sda

    The output:

    /dev/sda:

    Timing cached reads: 1484 MB in 2.01 seconds = 739.00 MB/sec

    Timing buffered disk reads: 62 MB in 3.00 seconds = 20.66 MB/sec

    It was awesome at the buffer-cache reads, most probably because of the disk's onboard cache, however, buffered disk reads is just at 20.66 MB / sec. Anything below 25MB is something you should worry about.

    3. CPU power is all consumed?

    # top

    Check the top output to find out if you're using too much CPU power. You should be looking the value under idle besides each CPU entry. Anything below 45% is something you should really worry about.

    III) Problem identified, What's the solution?

    To wrap it up, let me offer a few solutions for each problem:

    A global solution to all problems is to optimize MySQL, and Webserver including PHP/Perl scripts and queries. Or the least you can do is to optimize Apache and MySQL server parameters to perform better.

    1. Too much CPU usage

    In "ps -auxf" or "top" look for processes that use too much CPU. If it's HTTP or MySQL, you better optimize your scripts and queries

    Building Links To Your Website - How To Do It - And How Not To Do It
    Back-link building or creating inbound links has become a great preoccupation for web masters and search engine optimization professionals. Backlinks or inbound links are links found on another web site that would lead anyone clicking it to your web site. Backlinks have grown so important that software for auto linking have become just one of the many link building tools in the search engine optimization arsenal.Why are inbound links so important?Links leading to your site create the impression that your web site has something worthy and relevant to say and offer. It doesn’t matter whether or not you agree with this generalization. The search engines do – and that’s what matters! In the formula – the algorithm – that search engine use to quantify whether or not a web page is important, relevant links into that page is extremely important.Inbound links from quality and relevant web sites give your site high link popul
    hould probably look into optimizations on your PHP/Perl scripts, MySQL queries + server, and Apache.

    2. Check if I/O (input/output) usage is excessive

    If there are too many read/write requests on a single hard disk drive, it will become slow and you'll have to upgrade it to a faster drive (with more RPM and cache). The alternate option to a single faster drive is splitting the load onto multiple drives by spreading the most request content onto multiple drives, which can be easily accomplished using "symlinks" (soft links to files/folders). To identify, if your I/O issue is making your server lag:

    # top

    Read the output under "iowait" section, for each CPU. In ideal situations, it should be near to 0%. If you do however are scrutinizing at time of a load spike, consider rechecking these values multiple times to reach a fine conclusion. Anything above 15% is worrysome. Next, you can check the speed of your hard disk drive to see if it's really lagging:

    If you do know your hard disk exists on /dev/sda or /dev/hda, just perform the following. Or execute "df -h" command to check which is the drive that your data resides on.

    # hdparm -Tt /dev/sda

    The output:

    /dev/sda:

    Timing cached reads: 1484 MB in 2.01 seconds = 739.00 MB/sec

    Timing buffered disk reads: 62 MB in 3.00 seconds = 20.66 MB/sec

    It was awesome at the buffer-cache reads, most probably because of the disk's onboard cache, however, buffered disk reads is just at 20.66 MB / sec. Anything below 25MB is something you should worry about.

    3. CPU power is all consumed?

    # top

    Check the top output to find out if you're using too much CPU power. You should be looking the value under idle besides each CPU entry. Anything below 45% is something you should really worry about.

    III) Problem identified, What's the solution?

    To wrap it up, let me offer a few solutions for each problem:

    A global solution to all problems is to optimize MySQL, and Webserver including PHP/Perl scripts and queries. Or the least you can do is to optimize Apache and MySQL server parameters to perform better.

    1. Too much CPU usage

    In "ps -auxf" or "top" look for processes that use too much CPU. If it's HTTP or MySQL, you better optimize your scripts and queries

    Systems for Success
    What does it take to succeed? How many times have you asked that question of yourself and others? You may have heard many different answers. I have found one thing that successful people have in common. They use systems.They may or may not have talent. If they did they learned not to rely on talent alone. Talent is seductive. For example, if you are talented at golf you might be tempted not to practise. You might believe you can wing it. Tiger Woods never wings it. Wayne Gretzky never winged it. Both of them are tremendously talented at their sport. But they know not to rely on that talent alone. They developed systems.What is a system? A set of practices, procedures and habits melded into a process that you learn, perform, evaluate, improve and do again - repeatedly. Everything that you do can be a process. This applies in your personal life but especially to your business. To run a marathon requires a system - training, diet, measur
    /p>

    # hdparm -Tt /dev/sda

    The output:

    /dev/sda:

    Timing cached reads: 1484 MB in 2.01 seconds = 739.00 MB/sec

    Timing buffered disk reads: 62 MB in 3.00 seconds = 20.66 MB/sec

    It was awesome at the buffer-cache reads, most probably because of the disk's onboard cache, however, buffered disk reads is just at 20.66 MB / sec. Anything below 25MB is something you should worry about.

    3. CPU power is all consumed?

    # top

    Check the top output to find out if you're using too much CPU power. You should be looking the value under idle besides each CPU entry. Anything below 45% is something you should really worry about.

    III) Problem identified, What's the solution?

    To wrap it up, let me offer a few solutions for each problem:

    A global solution to all problems is to optimize MySQL, and Webserver including PHP/Perl scripts and queries. Or the least you can do is to optimize Apache and MySQL server parameters to perform better.

    1. Too much CPU usage

    In "ps -auxf" or "top" look for processes that use too much CPU. If it's HTTP or MySQL, you better optimize your scripts and queries, if possible. In most cases, it's extremely difficult to optimize all the scripts and queries and a better option is to just go for a CPU change/upgrade. A dual CPU should perform better, but what kind of upgrade you're looking for depends on your current CPU.

    2. RAM's all exhausted

    It's like you're in the same kind of situation as the CPU one. Optimize HTTP, MySQL, scripts etc. or go for a RAM upgrade. You may install Opcode cache softwares like APC (from Pear) for PHP to make it perform better while decreasing the load.

    3. Disk's all used (eh, I don't mean space)

    Here you either have to go for a faster disk like SATA over normal IDE or SCSI over SATA. Well, I was just speaking generally. You have consider factors like RPM and cache to end up going for an upgrad that's worth it. The second option is to get multiple drives of the same class and spread the load across drives. One common methodology is to serve MySQL from a second drive.

    IV) Conclusion

    That wasn't of much help? My article might be flawed, ahh, excuse me. It's my first article and this thing really consumed quite a few braincells of mine. That's a bit personal isn't it? Let's get back to business.

    FYI, In the example, the problem was with the I/O usage and hard disk getting slow.

    A guide can never be complete in itself or offer you everything you will need to reach upto expert level (you need to keep learning to reach that level). Whenever in doubt, please DO hire experts to look over your server. Somehow, if you don't have the money to spend, you're stil safe! You can head to our Server optimization help section to get help with your server optimization.

    HTTP = HTML link (for blogs, profiles,phorums):
    <a href="http://www.articledump.net/article/86795/articledump-Key-Factors-to-Find-Resource-BottleNeck-in-Linux-Server-Overloading.html">Key Factors to Find Resource BottleNeck in Linux Server Overloading</a>

    BB link (for phorums):
    [url=http://www.articledump.net/article/86795/articledump-Key-Factors-to-Find-Resource-BottleNeck-in-Linux-Server-Overloading.html]Key Factors to Find Resource BottleNeck in Linux Server Overloading[/url]

    Related Articles:

    Starting An Entrepreneur Magazine Business

    The Secrets to Becoming a Successful Creative Entrepreneur: JJK Secrets #19-21

    Getting Your Marketing Message Across with CD Business Cards

    Bookmark it: del.icio.us digg.com reddit.com netvouz.com google.com yahoo.com technorati.com furl.net bloglines.com socialdust.com ma.gnolia.com newsvine.com slashdot.org simpy.com shadows.com blinklist.com