Wordpress high cpu and sql usages?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Lace
    Too lazy to set a custom title
    • Mar 2004
    • 16116

    #1

    Wordpress high cpu and sql usages?

    Ok, how can I compensate for Wordpress basically killing our servers with high traffic?

    I was looking into WP-Cache but it's not making much of a difference and still killing cpu.


    Anyone have any ideas, tips or plugins to help? Anything would be very much appreciated.
    Your Paysite Partner
    Strength In Numbers!
    StickyDollars | RadicalCash | KennysPennies | HomegrownCash
  • Babaganoosh
    ♥♥♥ Likes Hugs ♥♥♥
    • Nov 2001
    • 15841

    #2
    What do you consider high traffic? I had a site survive a day on digg using wordpress and wp-cache. That was on a server with dual xeons and only 2GB of ram.
    I like pie.

    Comment

    • Lace
      Too lazy to set a custom title
      • Mar 2004
      • 16116

      #3
      Well considering each of our sites does about 200-500 a day and we have tons of blogs, this one spiked to about 5k yesterday and it's killing the sql and cpu
      Your Paysite Partner
      Strength In Numbers!
      StickyDollars | RadicalCash | KennysPennies | HomegrownCash

      Comment

      • just a punk
        So fuckin' bored
        • Jun 2003
        • 32393

        #4
        WP consumes a lot of server resources, that's not a secret.
        Obey the Cowgod

        Comment

        • Lace
          Too lazy to set a custom title
          • Mar 2004
          • 16116

          #5
          Well obviously I've got this figured out already...thanks for your worthless input.
          Your Paysite Partner
          Strength In Numbers!
          StickyDollars | RadicalCash | KennysPennies | HomegrownCash

          Comment

          • Babaganoosh
            ♥♥♥ Likes Hugs ♥♥♥
            • Nov 2001
            • 15841

            #6
            5k a day shouldn't cause any trouble at all. Assuming this is a dedicated server that isn't overcrowded I would think that apache might need a little tweaking. If you were using wp-cache then mysql shouldn't be the cause of the problem.
            I like pie.

            Comment

            • Nubiles
              Confirmed User
              • Apr 2002
              • 1496

              #7
              Originally posted by Lace
              Well obviously I've got this figured out already...thanks for your worthless input.
              We had the same problem. The solution we have come to is to write our own blog script. We explored other options and this was the best.
              NUBILES.NET : Hosted galleries with thumbs and descriptions | nn galleries | Hosted free sites | 3 new girls shot each week | Icq 143674274

              Comment

              • Babaganoosh
                ♥♥♥ Likes Hugs ♥♥♥
                • Nov 2001
                • 15841

                #8
                Also, are you sure wp-cache was working? Sometimes I have to enable/disable it a couple of times before I see the wp-cache comment tag at the bottom of the index page (it's just a comment in the HTML, it's not visible on the page itself). I always check for that comment to verify wp-cache is working.
                I like pie.

                Comment

                • blogman9
                  Confirmed User
                  • Dec 2005
                  • 1261

                  #9
                  post your Mysql version and http server.
                  Adult industry news

                  Comment

                  • Lace
                    Too lazy to set a custom title
                    • Mar 2004
                    • 16116

                    #10
                    Originally posted by Drunkspringbreakgirls
                    We had the same problem. The solution we have come to is to write our own blog script. We explored other options and this was the best.
                    I'd love to do this but simply do not have the time right now.

                    Originally posted by Babaganoosh
                    5k a day shouldn't cause any trouble at all. Assuming this is a dedicated server that isn't overcrowded I would think that apache might need a little tweaking. If you were using wp-cache then mysql shouldn't be the cause of the problem.
                    That's what I am thinking. 5k Isn't much of anything for traffic but it seems to be lagging the shit out of our server. Now, mind you - the server does have quite a few sites on it now and that can't be helping the situation. Right now, the cache *looks* to be working but the CPU is still high.

                    Originally posted by Babaganoosh
                    Also, are you sure wp-cache was working? Sometimes I have to enable/disable it a couple of times before I see the wp-cache comment tag at the bottom of the index page (it's just a comment in the HTML, it's not visible on the page itself). I always check for that comment to verify wp-cache is working.
                    I'm pretty sure. I'm going to toy with it some more, the boss was messing with it last night trying to get it to work.





                    Server version: Apache/1.3.33 (Unix)
                    Server built: Feb 9 2005 19:43:59
                    mysql Ver 12.22 Distrib 4.0.20
                    Your Paysite Partner
                    Strength In Numbers!
                    StickyDollars | RadicalCash | KennysPennies | HomegrownCash

                    Comment

                    • st0ned
                      Confirmed User
                      • Mar 2007
                      • 8437

                      #11
                      Originally posted by Lace
                      Well obviously I've got this figured out already...thanks for your worthless input.


                      Well I guess I figured out why my host is always bitching, I am running a ton of blogs on my server. I will keep an eye on this thread hopefully someone has a solution
                      Conversion Sharks - 1,000+ adult dating offers, traffic management, and consistently high payouts.
                      We will guarantee and beat your current EPC to win your dating traffic!
                      Skype: ConversionSharks || Email: info /@/ conversionsharks.com

                      Comment

                      • dozey
                        Confirmed User
                        • Nov 2004
                        • 552

                        #12
                        Originally posted by Drunkspringbreakgirls
                        We had the same problem. The solution we have come to is to write our own blog script. We explored other options and this was the best.
                        Sound advice. Wordpress is poorly engineered.

                        Comment

                        • just a punk
                          So fuckin' bored
                          • Jun 2003
                          • 32393

                          #13
                          I can't see any server hardware specs here.Perhaps it's some rusty IBM XT or something like that.

                          P.S. We have a way more intensive traffic our main WP blog - no problems so far.
                          Obey the Cowgod

                          Comment

                          • rvincent
                            Confirmed User
                            • Feb 2005
                            • 431

                            #14
                            Posting your server specs would have helped too... ie: if your server has 512MB of RAM, that may well be a bottleneck (I upgraded my main blog server last month because of that).
                            Victoria Holyns : promote her siteHERE !

                            Comment

                            • just a punk
                              So fuckin' bored
                              • Jun 2003
                              • 32393

                              #15
                              Originally posted by Drunkspringbreakgirls
                              We had the same problem. The solution we have come to is to write our own blog script. We explored other options and this was the best.
                              Are you talking about http://www.nubilesblog.com?
                              Obey the Cowgod

                              Comment

                              • Lace
                                Too lazy to set a custom title
                                • Mar 2004
                                • 16116

                                #16
                                Trying to find out the CPU speed but we know it's running with 2gigs of ram
                                Your Paysite Partner
                                Strength In Numbers!
                                StickyDollars | RadicalCash | KennysPennies | HomegrownCash

                                Comment

                                • Nubiles
                                  Confirmed User
                                  • Apr 2002
                                  • 1496

                                  #17
                                  Originally posted by cyberxxx
                                  Are you talking about http://www.nubilesblog.com?
                                  Why are you asking?
                                  What are you planning to do?
                                  NUBILES.NET : Hosted galleries with thumbs and descriptions | nn galleries | Hosted free sites | 3 new girls shot each week | Icq 143674274

                                  Comment

                                  • Meorazhar
                                    Confirmed User
                                    • May 2005
                                    • 672

                                    #18
                                    Lace, pls icq me, i think i might be able to help.
                                    5262689

                                    Comment

                                    • OG LennyT
                                      Wall Street Pimp
                                      • Jun 2003
                                      • 14345

                                      #19
                                      I had the same problem on a virtual server

                                      dedicated - smooth sailing with over 20 blogs and traffic...
                                      Tradeking - my online broker | 4.95 a trade | make real $$

                                      Comment

                                      • just a punk
                                        So fuckin' bored
                                        • Jun 2003
                                        • 32393

                                        #20
                                        Originally posted by Drunkspringbreakgirls
                                        Why are you asking?
                                        What are you planning to do?
                                        Nothing at all. I curious why it says: <meta name="generator" content="WordPress 2.2.2" />
                                        Obey the Cowgod

                                        Comment

                                        • ~Ray
                                          visit hardlinks.org
                                          • Jun 2003
                                          • 18361

                                          #21
                                          Originally posted by Lace
                                          Well obviously I've got this figured out already...thanks for your worthless input.
                                          you gave people 10 minutes to answer before you called them worthless.

                                          you are an idiot.


                                          ~Ray
                                          Adult Backlinks for Adult Websites - Testimonials Available

                                          Comment

                                          • Lace
                                            Too lazy to set a custom title
                                            • Mar 2004
                                            • 16116

                                            #22
                                            Yeah, and your response was that much more informative.

                                            If people could learn to read, they would see that the reason I was originally posting this was because WP was taking up a ton of system resources - there's no need to repeat my original post. DUH

                                            So save your breath, idiot.
                                            Your Paysite Partner
                                            Strength In Numbers!
                                            StickyDollars | RadicalCash | KennysPennies | HomegrownCash

                                            Comment

                                            • directfiesta
                                              Too lazy to set a custom title
                                              • Oct 2002
                                              • 30135

                                              #23
                                              a wordpress of a client on one of my virtual plans :

                                              Page Views
                                              Last Hour 4,425
                                              Today 55,990
                                              But the box is a dual Xeon 3.0 Ghz, 3 gigs ram, SCSI drives ...

                                              With just 5000 views a day, you should not have a problem unless your box is way outdated.
                                              I know that Asspimple is stoopid ... As he says, it is a FACT !

                                              But I can't figure out how he can breathe or type , at the same time ....

                                              Comment

                                              • directfiesta
                                                Too lazy to set a custom title
                                                • Oct 2002
                                                • 30135

                                                #24
                                                .. and maybe post the info of a TOP command, to see the usage of ressources.
                                                I know that Asspimple is stoopid ... As he says, it is a FACT !

                                                But I can't figure out how he can breathe or type , at the same time ....

                                                Comment

                                                • Lace
                                                  Too lazy to set a custom title
                                                  • Mar 2004
                                                  • 16116

                                                  #25
                                                  Ive been watching the top command now...dropped down to about 3.7-4 for the passed 30 mins
                                                  Your Paysite Partner
                                                  Strength In Numbers!
                                                  StickyDollars | RadicalCash | KennysPennies | HomegrownCash

                                                  Comment

                                                  • directfiesta
                                                    Too lazy to set a custom title
                                                    • Oct 2002
                                                    • 30135

                                                    #26
                                                    That is relatively high for such low traffic...

                                                    Here is my top on that box ( about 70 accounts on it ):

                                                    Cpu(s): 0.7% us, 0.2% sy, 0.0% ni, 98.9% id, 0.0% wa, 0.0% hi, 0.1% si
                                                    Mem: 3090296k total, 2925760k used, 164536k free, 152956k buffers
                                                    Swap: 4096532k total, 122688k used, 3973844k free, 676584k cached
                                                    I know that Asspimple is stoopid ... As he says, it is a FACT !

                                                    But I can't figure out how he can breathe or type , at the same time ....

                                                    Comment

                                                    • pornask
                                                      So Fucking Banned
                                                      • Aug 2006
                                                      • 6518

                                                      #27
                                                      Lace: sorry don't have an answer for you, hope you won't mind a bump with a question

                                                      I was looking to build a network of about 20 WP blogs covering unsaturated topic hence likeliness of them becoming fairly busy is probably. Do you think I should explore a different avenue to avoid overkill of my server?

                                                      Comment

                                                      • Lace
                                                        Too lazy to set a custom title
                                                        • Mar 2004
                                                        • 16116

                                                        #28
                                                        I'd do a max of say 10 per host...personally. Although I obviously don't know all I should, I wouldn't keep all my eggs in one basket.

                                                        Also be aware of what cron jobs are running and exactly how your plugins work before you install to make sure you're not going to overload your CPU & Memory.
                                                        Your Paysite Partner
                                                        Strength In Numbers!
                                                        StickyDollars | RadicalCash | KennysPennies | HomegrownCash

                                                        Comment

                                                        • V_RocKs
                                                          Damn Right I Kiss Ass!
                                                          • Nov 2003
                                                          • 32449

                                                          #29
                                                          last pid: 55447; load averages: 0.98, 2.03, 1.96 up 203+08:09:01 04:00:49
                                                          8 processes: 2 running, 6 sleeping
                                                          CPU states: 40.1% user, 0.0% nice, 13.0% system, 1.1% interrupt, 45.9% idle
                                                          Mem: 170M Active, 595M Inact, 275M Wired, 74M Cache, 112M Buf, 889M Free
                                                          Swap: 512M Total, 29M Used, 483M Free, 5% Inuse
                                                          Similar problem here... wasn't too big an issue when a 5K blog was the only thing on the box... Now it has about 100 sites doing anything from 300 to 5000 a day each and it is tanking my server.

                                                          I have had lesser servers with 150,000 hits a day to TGP's and nothing wrong.

                                                          Comment

                                                          • crockett
                                                            in a van by the river
                                                            • May 2003
                                                            • 76818

                                                            #30
                                                            Two words..

                                                            Blogs Organizer
                                                            In November, you can vote for America's next president or its first dictator.

                                                            Comment

                                                            • teg0
                                                              Confirmed User
                                                              • Jan 2006
                                                              • 4204

                                                              #31
                                                              edit: never mind, saw your responses to other people. you're a jerk who doesn't deserve help. go clean the sand out of your vagina to improve your attitude.
                                                              Last edited by teg0; 11-30-2007, 04:26 AM.

                                                              Comment

                                                              • TidalWave
                                                                Confirmed User
                                                                • Sep 2007
                                                                • 2706

                                                                #32
                                                                Lace...

                                                                I have a customer with this problem as well. Wordpress is just killing the CPU.
                                                                We had to move the database to a dedicated SQL server and leave http on another.
                                                                The SQL server is doing alright but the webserver is being killed with load.

                                                                For comparison:

                                                                WebServer Specs:

                                                                Xeon 3.4Ghz
                                                                4GB DDR RAM
                                                                73GB SCSI 10K


                                                                Database Server:

                                                                Core2Quad Q6600
                                                                2GB DDR2 RAM
                                                                250GB SATA2


                                                                he IS running wp-cache already and it IS working. While the database is handling the load, it still has rather high load.
                                                                http load is high on the webserver.
                                                                MySQL traffic between the web server and the db server does about 200Mbps. thats a lot of crappy sql traffic

                                                                Wordpress sux
                                                                Last edited by TidalWave; 11-30-2007, 04:34 AM.
                                                                www.SwiftNode.com

                                                                Comment

                                                                • TidalWave
                                                                  Confirmed User
                                                                  • Sep 2007
                                                                  • 2706

                                                                  #33
                                                                  So yeah, no real help on getting it solved other than upgrading the CPU on it, or spreading the load out as far as your budget will allow.
                                                                  We've managed the lower the load a bit by doing some MySQL tweaks but load still sux
                                                                  www.SwiftNode.com

                                                                  Comment

                                                                  • TidalWave
                                                                    Confirmed User
                                                                    • Sep 2007
                                                                    • 2706

                                                                    #34
                                                                    i guess it might also be very dependent plugin's you are running with Wordpress
                                                                    www.SwiftNode.com

                                                                    Comment

                                                                    • Why
                                                                      MFBA
                                                                      • Mar 2003
                                                                      • 7230

                                                                      #35
                                                                      i read an article once about a few lines of code you can change is choice places of the WP source that will really speed things up and lesson load. try a search on google for 'wordpress tuning' and the likes.

                                                                      Comment

                                                                      • TidalWave
                                                                        Confirmed User
                                                                        • Sep 2007
                                                                        • 2706

                                                                        #36
                                                                        i forgot to mention that his site gets about 46,000 page views per day
                                                                        www.SwiftNode.com

                                                                        Comment

                                                                        • TidalWave
                                                                          Confirmed User
                                                                          • Sep 2007
                                                                          • 2706

                                                                          #37
                                                                          he's looking at replacing wordpress with movabletype
                                                                          www.SwiftNode.com

                                                                          Comment

                                                                          • maxxxxx
                                                                            Confirmed User
                                                                            • Jul 2003
                                                                            • 646

                                                                            #38
                                                                            Originally posted by TidalWave
                                                                            i guess it might also be very dependent plugin's you are running with Wordpress
                                                                            From my experience this is a very important point! I ran into the same problems with my new Wordpress installation a few days ago. In the end it turned out to be a tiny little plugin that caused the problems. I killed as many plugins as possible and since then Wordpress is working fine for me even though I currently only use 1 GB of RAM and have a total of around 100,000 pageviews/day total on my site (not only Wordpress though but also static gallery pages).


                                                                            ****Teen Harbour**** - Home of Little Caprice
                                                                            -------------------------------------------------------------------
                                                                            In a perfect world... spammers would get caught, go to jail, and share a cell with many men who have enlarged their penisses, taken Viagra and are looking for a new relationship.

                                                                            Comment

                                                                            • Lace
                                                                              Too lazy to set a custom title
                                                                              • Mar 2004
                                                                              • 16116

                                                                              #39
                                                                              Thanks for all of your help Tidal. I will look into this more next week but I think the server is a couple years to date and could use some updating. Also thinking about moving this site over to another box....Just got to figure out what all we have hosted on our 5+ different free site servers.
                                                                              Your Paysite Partner
                                                                              Strength In Numbers!
                                                                              StickyDollars | RadicalCash | KennysPennies | HomegrownCash

                                                                              Comment

                                                                              • Lace
                                                                                Too lazy to set a custom title
                                                                                • Mar 2004
                                                                                • 16116

                                                                                #40
                                                                                Yeah we've been talking about the plugins as well...as they could have a huge impact with server resources. We've been toying with everything we can think of and it's helped a little bit but I guess the main problem is having nearly 100 sites, alot of blogs and php going all at once doesn't help things out.
                                                                                Your Paysite Partner
                                                                                Strength In Numbers!
                                                                                StickyDollars | RadicalCash | KennysPennies | HomegrownCash

                                                                                Comment

                                                                                • Snake Doctor
                                                                                  I'm Lenny2 Bitch
                                                                                  • Mar 2001
                                                                                  • 13449

                                                                                  #41
                                                                                  I agree with the statements about plugins.

                                                                                  Wordpress plugins on your server are the equivalent of shareware software on your PC....most of them are worthless and they fuck shit up.

                                                                                  Use as few plugins as possible and monitor your server load before and after you activate a plugin.
                                                                                  If one uses too much resource-wise, try to find another that does the same thing (there are usually several plugins out there for each task)

                                                                                  The biggest resource hogs for me were stat tracking programs, like firestats or stattraq. Killing them and just using server stats helped alot.
                                                                                  sig too big

                                                                                  Comment

                                                                                  • Scroto
                                                                                    Confirmed User
                                                                                    • Nov 2005
                                                                                    • 2804

                                                                                    #42
                                                                                    having some similar issues here also and this blog only has around 8k uniques daily. (no its not on a virtual lol)

                                                                                    looking for an alternative to wordpress

                                                                                    Comment

                                                                                    • HomerSimpson
                                                                                      Too lazy to set a custom title
                                                                                      • Sep 2005
                                                                                      • 13826

                                                                                      #43
                                                                                      Tried to otpimize the server software (or upgrade hardware)....
                                                                                      Optimize MySQL and install some php caching, get rid of apache addons you're not using... and your loads will drop...
                                                                                      Hit me up for details if needed...
                                                                                      Make a bank with Chaturbate - the best selling webcam program
                                                                                      Ads that can't be block with AdBlockers !!! /// Best paying popup program (Bitcoin payouts) !!!

                                                                                      PHP, MySql, Smarty, CodeIgniter, Laravel, WordPress, NATS... fixing stuff, server migrations & optimizations... My ICQ: 27429884 | Email:

                                                                                      Comment

                                                                                      • Marshal
                                                                                        Biz Dev and SEO
                                                                                        • Jun 2005
                                                                                        • 15219

                                                                                        #44
                                                                                        why don't you go with litehttpd? i found out apache with addons is too cpu consumpting.
                                                                                        ---
                                                                                        Busy ranking websites on Google...

                                                                                        Comment

                                                                                        • farkedup
                                                                                          Confirmed User
                                                                                          • Nov 2007
                                                                                          • 2490

                                                                                          #45
                                                                                          People try to use wordpress to do basically EVERYTHING you can think of. If you're wanting to run something other than a BLOG use something else. The people who try to run adult video sites using it I can't help but laugh at them... Same with the image gallery's. If you're doing anything other than blogging use a DEDICATED system for it.

                                                                                          Currently the most powerfull youtube type video script is Social Media. My script is several releases behind them but at about 1/10th the price and I know for a fact that my system can handle traffic a LOT better than that system.

                                                                                          Everybody here is simply asking you about your server when the REAL question is what are you trying to do? If you only need a couple fish there's no point in using a 100ft long net ;)
                                                                                          -- QUOTE ME IT MAKES ME FEEL SPECIAL --

                                                                                          Comment

                                                                                          • Marshal
                                                                                            Biz Dev and SEO
                                                                                            • Jun 2005
                                                                                            • 15219

                                                                                            #46
                                                                                            or even better, Zend + lighthttpd + eAccelerator + wp-cache.

                                                                                            how about that?
                                                                                            Last edited by Marshal; 11-30-2007, 04:34 PM.
                                                                                            ---
                                                                                            Busy ranking websites on Google...

                                                                                            Comment

                                                                                            • Marshal
                                                                                              Biz Dev and SEO
                                                                                              • Jun 2005
                                                                                              • 15219

                                                                                              #47
                                                                                              sorry about typos, it's: http://www.lighttpd.net/
                                                                                              ---
                                                                                              Busy ranking websites on Google...

                                                                                              Comment

                                                                                              Working...