AdRotate
Contact Form 7
Custom Post Type UI
Disable XML-RPC
Duplicate Post
Easy Post Display
Events Manager
Facebook Comments by Fat Panda
Heartbeat Control
Imsanity
WPBakery Visual Composer
My Custom CSS
P3 (Plugin Performance Profiler)
Plugin Organizer
Pointelle Slider
Redirection
Remove query strings from static resources
Revision Control
Simple Image Sizes
Social Media Tabs
UberMenu 3 – The Ultimate WordPress Mega Menu
UK Cookie Consent
Use Google Libraries
WordPress SEO
WP Post Template
WP-Optimize
WP-Polls
Custom Maintenance Mode
Reveal IDs
Some i disable and enable as and when i need them.
I am not by no means the most experienced so what could be causing these high numbers of php processes?
Thanks
]]>write(4, “\275\3SELECT t.*, tt.* FROM wpone”…, 193) = 193
read(4, “\1\1\n=\2\3def\voneshopp_db\1t\rwpon”…, 16384) = 743
access(“/home/user/public_html/wp-content/themes/compare/footer.php”, F_OK) = 0
time(NULL) = 1354130656
lstat64(“/home/user/public_html/wp-content/themes/compare/footer.php”, {st_mode=S_IFREG|0644, st_size=1450, …}) = 0
lstat64(“/home/user/public_html/wp-content/themes/compare”, {st_mode=S_IFDIR|0755, st_size=4096, …}) = 0
lstat64(“/home/user/public_html/wp-content/themes”, {st_mode=S_IFDIR|0755, st_size=4096, …}) = 0
And found like a solution to replace wp-includes/http.php with a modified version. By doing that i actually reduced my vps load from 15 to 0.25, some of the php processes were still there but they were not consuming that much cpu.
Obviously, the http.php version i’ve uploaded was incorrect, i ended up with Fatal error: Cannot redeclare class WP_Http in /home/user/public_html/wp-includes/class-http.php on line 34
I had to place back the original WP 3.4.2 http.php file.
Does anyone have any clue about the cause of the problem i’ve encountered after i’ve moved the WP site from subdomain to a main domain (basically from one folder to another) ?
Any suggestions, ideas on how can this be fixed is highly appreciated.
Thank you.
Laguna
I’m showing here that you’re queries need to be optimized. Below is an example of one of your queries that was getting killed due to the amount of time it was taking to execute, you’ll notice it’s a huge query:
[ 1328286601 ] [ johanhor_johanmu ] [ 2162627 ] [ 27 ] [ johanhor_johanmu ] [ Query ] [ KILLED ] [ ] [ SELECT t.*, tt.*, tr.object_id FROM wp_56_terms AS t INNER JOIN wp_56_term_taxonomy AS tt ON tt.term_id = t.term_id INNER JOIN wp_56_term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN (‘category’, ‘post_tag’, ‘post_format’) AND tr.object_id IN (8222, 8221, 8219, 8216, 8217, 8218, 8220, 8215, 8214, 8213, 8209, 8208, 8207, 8206, 8203, 8202, 8201, 8199, 8198, 8197, 8196, 8194, 8193, …………………………….(this continue for a page long).This one query is being executed, and killed as it’s taking too long to execute which in turn caused your site to receive the 500 error due to so many hanging PHP processes waiting on these types of queries to complete. Once you optimize your queries you shouldn’t receive these errors anymore. Here is a great resource on how to optimize your queries: https://hackmysql.com/nontech
I have read through the above and am clueless.
I then came across this https://revellian.com/2008/07/14/how-to-clean-wp-options-slow-mysql-queries/
And checked all my database tables under my multi install wordpress site. I have more than 1000 DB tables (I assume; due to excessive plugin use; plugins that i have killed to a few).
I thought why not kill the excessive DBs. But I have no idea what to leave and what to kill.
I hope you van help. Thanks Johan.
]]>I know this question depends on a lot of things, but I got a site with about 500 visitors and around 800 pageviews, nothing crazy. I do have W3 Total Cache installed and using Amazon S3 as CDN. But today my host told me my site used around 65-70 PHP processes, so they disabled my site for a while.
I have been looking at the CPU usage (shared hosting) all day, it does spike sometimes (700-1000 %) but it also happens when there’s no visitors or my site.
So is 65-70 PHP processes way to many for a site my size or is it my host that got too many accounts on the server I’m on ?
]]>“But regardless, the problem is that you are using too much memory, and that your PHP processes are hitting our process watcher which is why it’s showing the 500 error.”
So basically the amount of storage space and bandwidth is immaterial. The problem, for me anyway, with DreamHost shared hosting and WordPress is the amount of memory allotted- and they don’t give you that information- they won’t tell me how much memory I’m using or how much I’m allowed.
This is a single WP install on a unique user with little to no traffic and Super Cache installed.
It’s happening on all my WP sites but where I have more active plugins it’s worse.
I was looking forward to WP 3 and multi-sites. I don’t feel confident in even trying a multi-site install on DreamHost.
This only started happening around April 2010 when I was moved to a new server. I was previously happy at DH. Wouldn’t recommend it to anyone running WP now.