Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 21st Feb 2011, 04:47 PM   #51
Warrior Member
 
Join Date: 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: Wordpress Site shutdown for cpu usage, need help
Share on: 
fb share twitter share gplus share more share

Ernie, I'm new & cannot reply to your PM. If you PM me your email address, I can reply to your original PM.
DavidBratvold is offline  
Unread 21st Feb 2011, 05:41 PM   #52
WebNinja
 
jminkler's Avatar
 
Join Date: 2010
Location: Atlanta GA
Posts: 444
Thanks: 19
Thanked 54 Times in 34 Posts
Default
Re: Wordpress Site shutdown for cpu usage, need help
Share on: 
fb share twitter share gplus share more share

Ernie, if you dont have Firebug for firefox get it. Also, YSlow! plugin from yahoo, or Page Speed from google.

The "Net" tab is your friend. In the YSlow! plugin it will tell you how to optimize the page. Just follow all the links or read here ..

Best Practices for Speeding Up Your Web Site

Who suggested amazon as a solution? Your hosting provider?
jminkler is offline  
Unread 21st Feb 2011, 05:44 PM   #53
HyperActive Warrior
War Room Member
 
ErnieB's Avatar
 
Join Date: 2008
Location: NE Ohio
Posts: 322
Thanks: 75
Thanked 55 Times in 42 Posts
Default
Re: Wordpress Site shutdown for cpu usage, need help
Share on: 
fb share twitter share gplus share more share

someone in this thread suggested that images can use a lot of resources and that optimizing them or uses something like S3 could help.

Thanks for the recommendations I will check them out and see if I can figure out how to use them.
ErnieB is offline  
Unread 21st Feb 2011, 06:13 PM   #54
WebNinja
 
jminkler's Avatar
 
Join Date: 2010
Location: Atlanta GA
Posts: 444
Thanks: 19
Thanked 54 Times in 34 Posts
Default
Re: Wordpress Site shutdown for cpu usage, need help
Share on: 
fb share twitter share gplus share more share

Originally Posted by Amys101place View Post

That's not the proper way to build a sitemap. In my case, I have sites that delete hundreds of records a day that are older than 60 days and insert hundreds of new records a day. Simply adding to a sitemap wouldn't work. Consider the ever popular wprobot3 plugin or classified ads websites. You would need to delete the older records... often hundreds or thousands.. and recreate your entire sitemap for it to be valid.

Regardless of what it should be doing, if you take a look at what the WordPress Sitemaps plugin does, it creates a static sitemap file right in your wordpress directory and recreates it every time. I'm just offering suggestions on what might help based on past experiences.
Well that's why you don't put every file in the sitemap but allow the bot to find the articles from a given point, say a category or author. Take a look at how ezinearticles does it.
jminkler is offline  
Unread 21st Feb 2011, 06:14 PM   #55
HyperActive Warrior
War Room Member
 
ErnieB's Avatar
 
Join Date: 2008
Location: NE Ohio
Posts: 322
Thanks: 75
Thanked 55 Times in 42 Posts
Default
Re: Wordpress Site shutdown for cpu usage, need help
Share on: 
fb share twitter share gplus share more share

Cant get firebug to download, takes me to a directory of files instead of downloading
ErnieB is offline  
Unread 21st Feb 2011, 06:14 PM   #56
WebNinja
 
jminkler's Avatar
 
Join Date: 2010
Location: Atlanta GA
Posts: 444
Thanks: 19
Thanked 54 Times in 34 Posts
Default
Re: Wordpress Site shutdown for cpu usage, need help
Share on: 
fb share twitter share gplus share more share

Originally Posted by ErnieB View Post

someone in this thread suggested that images can use a lot of resources and that optimizing them or uses something like S3 could help.

Thanks for the recommendations I will check them out and see if I can figure out how to use them.

The images themselves are not using resources. Its FINDING the images to use, which post, which thumbnail, etc...
jminkler is offline  
Unread 21st Feb 2011, 06:15 PM   #57
WebNinja
 
jminkler's Avatar
 
Join Date: 2010
Location: Atlanta GA
Posts: 444
Thanks: 19
Thanked 54 Times in 34 Posts
Default
Re: Wordpress Site shutdown for cpu usage, need help
Share on: 
fb share twitter share gplus share more share

Originally Posted by ErnieB View Post

Cant get firebug to download, takes me to a directory of files instead of downloading
Firebug

Top right "Install Firebug"

Click - Firebug 1.6: Recommended
firebug-1.6.2.xpi
jminkler is offline  
Unread 21st Feb 2011, 06:23 PM   #58
Evan Mugford
War Room Member
 
Evan-M's Avatar
 
Join Date: 2010
Location: N.S. Canada
Posts: 414
Thanks: 22
Thanked 54 Times in 49 Posts
Default
Re: Wordpress Site shutdown for cpu usage, need help
Share on: 
fb share twitter share gplus share more share

another good extention ( for chrome) is monster, it analyzes web pages and suggests ways to improve their performance based on a set of rules for high performance web pages.

I use it in extension to firefox and it works well

Evan-M

Easily The Worlds Best Wordpress Popup plugin

Visit Website Design Firm For All Your Wordpress Coding Needs
Evan-M is offline  
Unread 21st Feb 2011, 07:11 PM   #59
HyperActive Warrior
 
Join Date: 2010
Posts: 479
Thanks: 37
Thanked 66 Times in 45 Posts
Default
Re: Wordpress Site shutdown for cpu usage, need help
Share on: 
fb share twitter share gplus share more share

Originally Posted by jminkler View Post

The images themselves are not using resources. Its FINDING the images to use, which post, which thumbnail, etc...
Images don't use resources?!!! [scratching my head....] New to the web?
guitarjosh is offline  
Unread 21st Feb 2011, 07:45 PM   #60
Evan Mugford
War Room Member
 
Evan-M's Avatar
 
Join Date: 2010
Location: N.S. Canada
Posts: 414
Thanks: 22
Thanked 54 Times in 49 Posts
Default
Re: Wordpress Site shutdown for cpu usage, need help
Share on: 
fb share twitter share gplus share more share

Originally Posted by guitarjosh View Post

Images don't use resources?!!! [scratching my head....] New to the web?

they use hard drive space and bandwidth , but not so much cpu processing. in some cases where people add a image without the width and height ex:

<img src="pic.jpg">

instead of

<img src="pic.jpg" width="46" height="26">

the cpu has to do a little work ( it can get to large amounts on sites with allot of images) but no where near enough to cause a problem like this without being in combination with other factors.

Evan-M

Easily The Worlds Best Wordpress Popup plugin

Visit Website Design Firm For All Your Wordpress Coding Needs
Evan-M is offline  
The Following User Says Thank You to Evan-M For This Useful Post:
Unread 21st Feb 2011, 08:04 PM   #61
WebNinja
 
jminkler's Avatar
 
Join Date: 2010
Location: Atlanta GA
Posts: 444
Thanks: 19
Thanked 54 Times in 34 Posts
Default
Re: Wordpress Site shutdown for cpu usage, need help
Share on: 
fb share twitter share gplus share more share

Originally Posted by guitarjosh View Post

Images don't use resources?!!! [scratching my head....] New to the web?
No not new to the web at all, read the thread. Perhaps sipping on the guru Kool-aid?
jminkler is offline  
Unread 22nd Feb 2011, 11:47 AM   #62
Warrior Member
 
Join Date: 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: Wordpress Site shutdown for cpu usage, need help
Share on: 
fb share twitter share gplus share more share

Is there a way to find out exactly which file, script, page, etc... is causing the majority of a WP site's CPU usage?
DavidBratvold is offline  
Unread 22nd Feb 2011, 11:51 AM   #63
Evan Mugford
War Room Member
 
Evan-M's Avatar
 
Join Date: 2010
Location: N.S. Canada
Posts: 414
Thanks: 22
Thanked 54 Times in 49 Posts
Default
Re: Wordpress Site shutdown for cpu usage, need help
Share on: 
fb share twitter share gplus share more share

Originally Posted by DavidBratvold View Post

Is there a way to find out exactly which file, script, page, etc... is causing the majority of a WP site's CPU usage?
you could run your site through one similar to below and determine load speeds of each element, you can pretty much guess the culprit in most cases based on the stats

Web Page Analyzer - free website optimization tool website speed test check website performance report from web site optimization

Evan-M

Easily The Worlds Best Wordpress Popup plugin

Visit Website Design Firm For All Your Wordpress Coding Needs
Evan-M is offline  
Unread 22nd Feb 2011, 12:43 PM   #64
WebNinja
 
jminkler's Avatar
 
Join Date: 2010
Location: Atlanta GA
Posts: 444
Thanks: 19
Thanked 54 Times in 34 Posts
Default
Re: Wordpress Site shutdown for cpu usage, need help
Share on: 
fb share twitter share gplus share more share

Originally Posted by DavidBratvold View Post

Is there a way to find out exactly which file, script, page, etc... is causing the majority of a WP site's CPU usage?
If your running VPS you could install the xdebug php extension. Or, you could download your site, and mysql backup and run it locally.
jminkler is offline  
Unread 22nd Feb 2011, 01:46 PM   #65
Warrior Member
 
Join Date: 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: Wordpress Site shutdown for cpu usage, need help
Share on: 
fb share twitter share gplus share more share

Originally Posted by jminkler View Post

If your running VPS you could install the xdebug php extension. Or, you could download your site, and mysql backup and run it locally.
I downloaded my WordPress 3.0x site locally, to my Win 7 computer (just a normal desktop - not a 'server' or anything). MySQL db too.

I installed Xampp. I've got my site working on localhost/wordpress/

What specifically do I do, to diagnose it? I just have my Task Manager (Performance tab) open, watching CPU Usage as I navigate to each page. I don't find it too helpful, as it spikes to 10-50% on every page load (for 1/2 sec maybe) for a fresh, vanilla, install of WP. As I programmed a lot of the plugins myself, I would like to see where I've done a 'poor job.'

Thanks Jarret,

-David
DavidBratvold is offline  
Unread 22nd Feb 2011, 04:01 PM   #66
Web Developer
 
Join Date: 2010
Location: Wisconsin
Posts: 322
Thanks: 2
Thanked 80 Times in 74 Posts
Default
Re: Wordpress Site shutdown for cpu usage, need help
Share on: 
fb share twitter share gplus share more share

@DavidBratvold Code analysis gets a lot more technical than opening Task Manager.

FireBug -> Net tab for HTTP requests and header, etc....
PHPUnit & CodeCoverage for PHP unit tests (Very advanced)
WebGrind for basic PHP coverage, process times etc... Works well.
XDebug PHP debugger for debugging
MySQL WorkBench can help with showing database performance

And there are many others...

For plug-ins make sure you use WP's standards.
Always make a hook for JavaScripts and CSS in your plug-ins so others can disable them and add them the way they want without editing your plug-in.
This makes it possible to compile these items to lower requests.

Check the queries, how many database connections.
HTTP requests, limit them as much as possible.

Originally Posted by jminkler View Post

The images themselves are not using resources. Its FINDING the images to use, which post, which thumbnail, etc...
Everything on your server/site uses resources...
Every image causes a request, what do you think delivers that request?
The server.... Apache httpd.

It all causes load on the server.

phpbbxpert is offline  
The Following User Says Thank You to phpbbxpert For This Useful Post:
Unread 4th May 2011, 01:25 AM   #67
Money-Maker
Registered Member
War Room Member
 
cryptone24's Avatar
 
Join Date: 2008
Location: TX
Posts: 327
Thanks: 67
Thanked 16 Times in 16 Posts
Default
Re: Wordpress Site shutdown for cpu usage, need help
Share on: 
fb share twitter share gplus share more share

I am having a hard time understanding W3 Cache. Can you share your settings with us?

Originally Posted by Christian Little View Post

I use "W3 Total Cache" because it lets you cache more than just "everything", you can tell it just to cache database queries, or objects, or everything. It even lets you setup your blog to host images on a CDN like Amazon. It works really well for me.

EDIT: It's also worth pointing out that when I was using HostGator and a blog started using too many resources, this is the plugin they suggested. Given how overloaded their servers are, it's probably one of the better options if they're telling people to use it.

Here's the link: WordPress Optimization | W3 Total Cache | W3 EDGE | Boston, MA
cryptone24 is offline  
Unread 4th May 2011, 07:56 AM   #68
Flying Waffle
War Room Member
 
Join Date: 2011
Location: Vancouver, Canada
Posts: 806
Thanks: 62
Thanked 208 Times in 158 Posts
Default
Re: Wordpress Site shutdown for cpu usage, need help
Share on: 
fb share twitter share gplus share more share

Originally Posted by cryptone24 View Post

I am having a hard time understanding W3 Cache. Can you share your settings with us?
Enable the following:

-Page Cache (this is the biggest load saver)
-Minify
-Browser Cache (this is the 2nd biggest load saver)


There's 3 others that are optional:

-Object Cache (useful if you have a huge number of objects, but not a big deal)
-Database Cache (useful if you are making a lot of posts every day, I leave it off usually)
-CDN (use this if you have an Amazon CDN account)

Christian Little is offline  
Closed Thread


Bookmarks

Tags
cpu, shutdown, site, usage, wordpress


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 04:44 PM.