Managing My Servers Better

Posted on 2006-05-26
Last Modified: 2013-12-03
Hi, I'm new to hosting servers, and though my company has been successful, I'm noticing my servers performance getting worst, and was seeking some advice. My servers are Dual Opteron 246's, and Dual Xeon 2.8/3.0, all with 2gb of memory or more. I also run Redhat Distributions on all of them

Firstly, my boxes are becoming very full, I have been spiking all the way to 90% cpu usage on some boxes, and it is causing very bad experiences for my clients. I offer game server hosting, and customers are extremely picky on the performance of the server. What would you guys suggest that I try to keep my cpu usage at to avoid any performance problems.

Also it seems like over time, my servers cpu usage gets a little higher. Should I be rebooting my server from time to time? Should I be doing any other things to keep it running good. Any other suggestions are much appreciated.

Thank You, Brad
Question by:mindlessacts
    LVL 14

    Accepted Solution


    Use "top" command to see which processes are using the most CPU.

    "cat /proc/meminfo" to check on memory usage.

    LVL 16

    Expert Comment


    If your using Redhat you can set limits on people who hog the CPU you can get these limits at:


    Some of the limits you can set:

    - core - limits the core file size (KB)
    - data - max data size (KB)
    - fsize - maximum filesize (KB)
    - memlock - max locked-in-memory address space (KB)
    - nofile - max number of open files
     - rss - max resident set size (KB)
    - stack - max stack size (KB)
    - cpu - max CPU time (MIN)
    - nproc - max number of processes
    - as - address space limit
    - maxlogins - max number of logins for this user
    - maxsyslogins - max number of logins on the system
    - priority - the priority to run user process with
    - locks - max number of file locks the user can hold
    - sigpending - max number of pending signals
    - msgqueue - max memory used by POSIX message queues (bytes)
    - nice - max nice priority allowed to raise to
    - rtprio - max realtime priority

    I would suggest setting the number of processes a user can have and also max CPU time to say 1
    LVL 38

    Expert Comment

    > 2gb of memory or more
    Besides CPU usage, you might want to watch the memory usage with the following command:
    # free
                 total       used       free     shared    buffers     cached
    Mem:       3947624    3931296      16328          0     105848    3210036
    -/+ buffers/cache:     615412    3332212
    Swap:      8385888          0    8385888

    If you see some big number in Swap:used, then you probably want to add more memory.
    Besides, when the process swap between memory and the hard disk, the performance will be very bad.
    So just add more memory.

    Author Comment

    Ok, I just did the memory command, and I'm using almost 100% of the memory, but there is no way I should be using that much, I dont even have much running. Any clue why?

    Regards, Brad
    LVL 16

    Assisted Solution


    Try type:

    ps aux | more

    And look at whats hogging your CPU
    LVL 38

    Assisted Solution

    Use "top" command as ppfoong mentioned, then type "M" to sort by memory usage. Press "q" to leave "top" command.

    > there is no way I should be using that much,
    It's hard to say. I think add more memory will help your situation at this time.
    LVL 14

    Expert Comment


    For actual memory usage, see the figure shown as Active as in "cat /proc/meminfo". Linux will make use of as much physical memory as possible for buffers and caches, which is also shown there, and hence you will most probably always see 100% memory usage after some times.


    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
    1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now