GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Wordpress high cpu and sql usages? (https://gfy.com/showthread.php?t=788270)

Lace 11-29-2007 08:25 AM

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.

Babaganoosh 11-29-2007 08:30 AM

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.

Lace 11-29-2007 08:31 AM

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 :(

just a punk 11-29-2007 08:32 AM

WP consumes a lot of server resources, that's not a secret.

Lace 11-29-2007 08:35 AM

Well obviously I've got this figured out already...thanks for your worthless input.

Babaganoosh 11-29-2007 08:38 AM

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.

Nubiles 11-29-2007 08:38 AM

Quote:

Originally Posted by Lace (Post 13442052)
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.

Babaganoosh 11-29-2007 08:39 AM

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.

blogman9 11-29-2007 08:41 AM

post your Mysql version and http server.

Lace 11-29-2007 08:52 AM

Quote:

Originally Posted by Drunkspringbreakgirls (Post 13442087)
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. :(

Quote:

Originally Posted by Babaganoosh (Post 13442085)
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.

Quote:

Originally Posted by Babaganoosh (Post 13442106)
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

st0ned 11-29-2007 08:54 AM

Quote:

Originally Posted by Lace (Post 13442052)
Well obviously I've got this figured out already...thanks for your worthless input.

:1orglaugh

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 :thumbsup

dozey 11-29-2007 08:59 AM

Quote:

Originally Posted by Drunkspringbreakgirls (Post 13442087)
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.

just a punk 11-29-2007 09:00 AM

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.

rvincent 11-29-2007 09:01 AM

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).

just a punk 11-29-2007 09:03 AM

Quote:

Originally Posted by Drunkspringbreakgirls (Post 13442087)
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? :)

Lace 11-29-2007 09:26 AM

Trying to find out the CPU speed but we know it's running with 2gigs of ram

Nubiles 11-29-2007 09:26 AM

Quote:

Originally Posted by cyberxxx (Post 13442413)
Are you talking about http://www.nubilesblog.com? :)

Why are you asking?
What are you planning to do?:(

Meorazhar 11-29-2007 09:45 AM

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

OG LennyT 11-29-2007 09:47 AM

I had the same problem on a virtual server :(

dedicated - smooth sailing with over 20 blogs and traffic...

just a punk 11-29-2007 09:54 AM

Quote:

Originally Posted by Drunkspringbreakgirls (Post 13442739)
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" /> :)

~Ray 11-29-2007 10:00 AM

Quote:

Originally Posted by Lace (Post 13442052)
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

Lace 11-29-2007 02:15 PM

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.

directfiesta 11-29-2007 02:27 PM

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

Quote:

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.

directfiesta 11-29-2007 02:28 PM

.. and maybe post the info of a TOP command, to see the usage of ressources.:2 cents:

Lace 11-29-2007 02:30 PM

Ive been watching the top command now...dropped down to about 3.7-4 for the passed 30 mins

directfiesta 11-29-2007 02:34 PM

That is relatively high for such low traffic...

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

Quote:

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

pornask 11-29-2007 02:41 PM

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?

Lace 11-29-2007 03:04 PM

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.

V_RocKs 11-30-2007 06:11 AM

Quote:

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.

crockett 11-30-2007 06:14 AM

Two words..

Blogs Organizer

teg0 11-30-2007 06:24 AM

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.

TidalWave 11-30-2007 06:33 AM

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 :(

TidalWave 11-30-2007 06:39 AM

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

TidalWave 11-30-2007 06:44 AM

i guess it might also be very dependent plugin's you are running with Wordpress

Why 11-30-2007 07:36 AM

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.

TidalWave 11-30-2007 07:42 AM

i forgot to mention that his site gets about 46,000 page views per day

TidalWave 11-30-2007 07:52 AM

he's looking at replacing wordpress with movabletype

maxxxxx 11-30-2007 09:08 AM

Quote:

Originally Posted by TidalWave (Post 13450143)
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).

Lace 11-30-2007 09:32 AM

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. :Oh crap

Lace 11-30-2007 09:43 AM

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.

Snake Doctor 11-30-2007 10:59 AM

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.

Scroto 11-30-2007 04:07 PM

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 :disgust

HomerSimpson 11-30-2007 05:35 PM

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...

Marshal 11-30-2007 06:27 PM

why don't you go with litehttpd? i found out apache with addons is too cpu consumpting.

farkedup 11-30-2007 06:28 PM

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 ;)

Marshal 11-30-2007 06:32 PM

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

how about that? :)

Marshal 11-30-2007 06:49 PM

sorry about typos, it's: http://www.lighttpd.net/


All times are GMT -7. The time now is 03:26 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123