Results 1 to 5 of 5

Thread: Help Please

  1. #1
    Join Date
    Sep 2006

    Help Please

    Hello everybody

    I have a New Dedicated Server with the specifications shown in pic1.

    This server has only 1 website working on it , this website has a traffic about 30,000 page views per day .

    My problem is i feel there is something wrong with the memory usages .

    Befor when you are browsing the website its fast and the performance is perfect.

    Now the browsing is slow most of the time.

    The memory usage if you see in pic2 is about 100% , and the swap is not used.

    I was on server the memory usage was on it most of the time shown in pic3

    My question why the sawp in the new one is always seems not used or not working .

    And is there anyway to make the swap used when the phesical memory reached an specified value

    I need some help and advise please

    Thank you

    Attached Thumbnails Attached Thumbnails pic1.jpg   pic2.jpg   pic3.jpg  

  2. #2
    Join Date
    Nov 2002
    * Moved to Technical and Security Issues

    I support the Human Rights Campaign!
    Moving to the Tampa, Florida area? Check out life in the suburbs in Trinity, Florida.

  3. #3
    Join Date
    Jun 2003
    Janesville, Wi
    First off: Your total used RAM is only 23.6% of the 1GB available. The rest of the RAM is stored in cache, but this keeps it as still being available.

    The reason why the swap isn't being used is because the server doesn't need to use it. If your server is swapping, often, that's a very bad thing. Swapping takes much longer to process than accessing physical RAM (RAM runs at anywhere from 8GB/s to 32GB/s depending on your system while swap, being on the hard drive, goes about 80 MB/s). So the fact that your server is swapping to little is, in fact, a GOOD thing.

    As for why the server is slow, you have no provided enough information. Could you please print the top lines of "top" so that we can see CPU usage, etc?

    Also, you could download and install sysstat which can show you how active your CPU's and hard disks are. If you download that and install it, print us out the following:

    /usr/local/bin/iostat -x


    Edit: Looking at your third image, I see that your system has swapped 120MB or so. Do you run MySQL on this server and access some medium-sized databases? If so, MySQL might be trying to allocate more RAM than the server has available thus causing short but often swapping.
    Last edited by Jakiao; 09-22-2006 at 04:43 PM.

  4. #4

    You need to check the configuration of the server and the control panel that you have installed on the server. Also you need to check if the firewall on the server is properly configured, so that the memory usage of your server is limited.

    A site with 30000 hits on a single day is going to take a lot of memory on the server. But it also depends on the size of the domain, that is the disk space allocated to your domain and the disk usage of that domain. If the pages of that domain is using heavy diskspace then the that site would consume a lot of bandwidth.

    Well, if the memory allocated to your server is consumed, the swap memory is automatically used and if it doesn't then it means that the server is not configured properly.

    Thank you.


  5. #5
    Join Date
    Jun 2003
    Janesville, Wi
    You can't determine memory usage based on the number of pageviews a website gets. So stating "A site with 30000 hits on a single day is going to take a lot of memory on the server" is a completely premature statement with no basis in reality. Also, the firewall and bandwidth have absolutely nothing to do with the amount of memory a system uses.

    To support my statements:

    I've managed servers with sites that get over 22,000,000 pageviews per day that use less than a gig of RAM. At the same time, I've seen sites with 300,000 pageviews per day which use over 4GB of RAM. In fact, I work with sites like that on a daily basis.

    The type of content being served greatly determines the amount of RAM a site will use. Static content will use almost no RAM. Light MySQL usage will also use almost no RAM. Any amount of MySQL usage that scans over a large number of rows will use an increased amount of RAM. Scan over a MySQL table that has a hundred thousand or more rows and you could start seeing issues with RAM if there isn't enough. Scan over the same number of rows at a constant rate (say once per second or more), and you'll see a slow-down. Finally, scan over a MySQL table and return a large amount of data, and you'll have the same effect as if you were going over hundreds of thousands of rows.
    Last edited by Jakiao; 09-22-2006 at 05:20 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts