Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » Running WordPress » Installing & running WordPress »

[SOLVED] index.php frequently using 80% of CPU resources


 
Prev Previous Post   Next Post Next
  #1  
Old Jun 14, 2011, 02:51 AM
solaraaron
 
1 posts · Jun 2011
[SOLVED] index.php frequently using 80% of CPU resources

Hi guys,

I seem to have a problem with my site, that sometimes even causes it to crash on post update.

I'm not sure what the problem can be, but I've eliminated a lot of potential issues.

1. The scripts leave no hanging/sleeping MySQL threads
2. All plugins that are working do not seem to be outputting any errors to any of the log files
3. I've began minimising the individual calls to get_permalink(); to keep server processes low.
4. Any plugins that we're serving no purpose have been disabled and removed
5. I've disabled Post revisions with: define('WP_POST_REVISIONS', false);
6. I've updates the max_allowed_packet size in MySQL as well as in Wordpress: define('WP_MEMORY_LIMIT', '32M');

I have a few more avenues of inquiry I want to check out:

1. The database has previously been saving post revisions, but the database is only 14MB - I assume this is fine?
2. I've added a script to output the number of queries ran per page and it seems to be around 30 - is this ok?

The real issues are on post edits, and post creations. If I add a new page it usually forces my server to reboot as it tops out all resources. The only remedy is to reboot the dedicated server.

It has a high enough spec to in theory run hundreds of these websites, it's only receiving 1600 pageviews per day!!

The process that uses most of the cpu is index.php so I have to assume it's either a plugin or a template file that's causing the problem,

1. How can I find out what file it is?
2. Are the two issues related? The high index.php on page load, and the crashing on writing to the DB?


Any help would be much appreciated

Aaron
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
PATCH 367-03: PHP errors when adding widget areas in index.php juggledad Old Version fixes and change logs 0 May 14, 2011 09:52 AM
Resources for learning php.... and specifically for Wordpress? Help plz gwpad Forum How-To 1 Jan 14, 2010 03:13 PM


All times are GMT -6. The time now is 01:59 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.