Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Jun 2006
    Posts
    214

    Question Increase server performance

    One of our servers is a :
    • Dualcore AMD Opteron 1214 with 2,2GHz
    • 4Gb ram
    • 7200rpm – 8mb cache – Raid 1 Hard drive
    • 200 gb data traffic a month
    • Approximately 250k visitors a month.

    There are only 5 sites on this server, running wordpress with lots of images and the use of timthumb.php

    During peak hours the server load is between 1.8 and 3.2.
    Most of the CPU consuming part of it is the rss feed timthumb.php and the use of js on the site.

    An option would be to upgrade the server to something like a Opteron 6128 with 4Gb of ram, but I feel like the Opteron 1214 should be able to manage 5 sites with 200gb traffic and 250k visitors.

    We have already done some mysql tweaking and that is not the resource problem. It’s the CPU that is having a hard time.

    Do you know any good tweaks or reads on how to improve CPU using without having to upgrade the hardware?

  2. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,894
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    All 5 sites runs this timthumb script? What other addons do these sites run? You might try disabling a few of those as that sort of thing can increase load I'm sure of it.

    Also are all of your addons up to date? If you're using an out of date addon it could be causing the issues.

    Instead of throwing hardware at it I'd be disabling features till I found the one causing the problems.
    Fav cPlinks this week: Blog - cPanel & WHM 11.32 we love it! | cPanel University study for it! | Attracta is coming! we want this!

  3. #3
    Member
    Join Date
    Jun 2006
    Posts
    214

    Default

    Everything is up-to-date, optimized, minifided, etc.

    Page speed scores of all sites is 90+.

    The timthumb script causing a lot of CPU, but the feeds use huge amounts of CPU. /feed/ is responsible for 65% to 70% of the daily CPU usage.
    Last edited by johnburk; 08-08-2010 at 02:50 PM. Reason: added links

  4. #4
    Member
    Join Date
    Oct 2009
    Posts
    7
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Try using a cache solution for timthumb script. I didn't worked with the script before but as a developer I don't see the point of having a script that resizes a image on each request if the image doesn't change between requests (if that is the case for you).

    Also use APC for PHP op-cache, use memcached for caching partial/full pages responses (and feeds in your case), database results etc. If those aren't enough, use file cache for pages, feeds and images that is refreshed on appropriate intervals. I can't stress enough how important caching is for websites under heavy loads

    If you can't do that for yourself search for a good programmer/programming team and they should be able to identify where the problems are.
    Last edited by florinpatan; 08-08-2010 at 03:41 PM. Reason: More advices added

  5. #5
    Member
    Join Date
    Nov 2006
    Posts
    82

    Default

    It sounds like you might be running some sort of transformation on the images as they are served (presuming that is what you're using timthumb for). If that is the case, you should look for a way to perform those transformations once (upon upload, first access, etc). There isn't a lot of info in your description of the site to help me give more specific suggestions.

  6. #6
    Member
    Join Date
    Jun 2006
    Posts
    214

    Default

    Thanks everyone. The biggest problem is the feeds and moslty because over 50 different sites take the content from the feed and some check it every every few seconds.

    It seems to be a big issue in wordpress that can be fixed with one the the 3 things.

    - Cache feeds.
    - Block these external sites (thus reduce number of visitors to your site)
    - Outsource your feed to a 3rd party, such as feedburner.

    I am going to try the cache option first. The other 2 are not great options for me. I will update this topic for people who have a similar problem.

  7. #7
    Member
    Join Date
    Jun 2006
    Posts
    214

    Default

    I used Main >> System Health >> Show Current CPU Usage to trace a process that uses a lot of cpu.

    The process is about 40.000 lines long so I am not going to post it, but it does include a lot of "lstat64"

    So I guess something is requesting huge amounts of file information request. Just can figure out why.

    Does anyone have an idea?

Similar Threads & Tags
Similar threads

  1. Server Performance with iSCSI Problem?
    By garfield.arlene in forum Optimization
    Replies: 0
    Last Post: 10-08-2010, 01:21 PM
  2. Load on server decreasing server performance
    By its_joe in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-11-2008, 08:13 PM
  3. Slow Server Performance
    By skullguy in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 12-30-2007, 12:40 AM
  4. Server performance increase, don`t know why
    By chmod in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 09-12-2006, 11:11 AM
  5. Performance problem with my new server (benchmark)
    By okanari in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-23-2006, 11:05 AM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube