mrarrow
Forum Replies Created
-
Forum: Networking WordPress
In reply to: wp-cron causing excessive processesNow that a suitable amount of time has elapsed, I can confirm that the following sorted my particular issues:
Resetting my global PHP.ini file to following:
CORE: memory_limit = 96Mb
OPTIONS & INFORMATION: max_execution_time = 60secsFor sites with any significant traffic, I also disabled wp-cron in the wp-config.php file and set up cron jobs in cPanel (for each site and subdomain) to run at regular intervals, generally 4-6hrs. All as detailed above.
This then fixed the issues almost immediately.
Further to that, I recently noticed that 1Gb of RAM had “dropped off” my VPS (should’ve had 2Gb. but it was only operating with 1Gb!!!!). So I politely requested my hosting provider find the extra RAM and reapply it…
This actually may have been the catalyst for the problems in the first place, but clearly the first two actions fixed the server load before I noticed the missing RAM and WP leaner and meaner the first place.
I’m currently running about 15-20 separate WP installs on the same VPS, most with multiple subdomains.
Forum: Networking WordPress
In reply to: wp-cron causing excessive processesI think I may have got to the bottom of this (took a while!). First off, I noticed my global php.ini file had the following settings:
CORE: memory_limit = 256Mb OPTIONS & INFORMATION: max_execution_time = 1000secSo I changed those back to 96Mb and 60secs respectively (I believe they are the default options), which immediately reduced the number of accounts reporting the error messages.
However, the bigger traffic sites were still causing issues.
So after a lot of investigation, I found out that wp-cron.php is actually run on EVERY page load (when logging into the backend or when a user views any frontend page).
I was really surprised by this (and it does seem very inefficient), so I disabled wp-cron.php from firing in this way by adding the following line to my wp-config.php file:
define('DISABLE_WP_CRON', true);and then added a cronjob in cPanel to run this file for each site (and any sub domains) at a predetermined time (say every 4hrs or so)
wget http://domainname/wp-cron.php wget http://subdomain.domainname/wp-cron.phpDoing this for each site that was reporting the errors seems to have fixed it and I’ve had nice steady loads every since – although you know what’s gonna happen now I’ve said that…:-)
Forum: Networking WordPress
In reply to: SVN and automatic upgradeCool. Thanks for confirming.
Anyway, when I said “normal Admin rights”, I did mean Network Admin (sorry, loose terminology on my behalf).
Useful to know that both methods are compatible – shame there’s not more made of this in the documentation.
Forum: Networking WordPress
In reply to: wp-cron causing excessive processesIts a VPS with:
1024Mb RAM
76Gb hard driveViewing Top I generally run at about 0.25 to 1 most of the time. My server provider has said that anything up to about 3-6 is OK as long as its not constant. So I’m obviously well within boundaries at the moment. And I normally have at least 600mb of RAM free at any one time (according to Top).
I get excessive resource usage messages everyday from at least one or two of the accounts, but there’s no appreciable reduction in speed or response of any of the installs or server at this point.
I then get load average alert warnings probably every 5 – 10 days (which can briefly reach 25 – 30 at its peak, before it settles down again). During this time, everything on the server grinds to a halt.
Reading this through now, maybe the excessive resource usage isn’t connected with the server load warnings. It certainly seems odd…
Any ideas?
Forum: Networking WordPress
In reply to: wp-cron causing excessive processesWell it seems to be happening to the installs that have had recent activity on them in terms of content being generated or edited (but as I say, not necessarily at that time – coz I’m getting spikes during the night too).
By default I set them up as multisite (even though I may not immediately need the multisite capability – I come at it from WPMU!). I don’t use multidomain installs now – I set each one up in separate accounts on the server.
There’s no common themes being used and the installs have varying amounts of traffic and user-generated activity.
In general the only common plugins I use across all these sites are:
Unfiltered MU 1.3.1
Defensio 2.5.9I’m not sure if this helps!
Forum: Networking WordPress
In reply to: wp-cron causing excessive processesWhat if a user doesn’t actually log out of the WP backend, but simply shuts their laptop or switches off their PC? It _appears_ that the session still remains active at least as far as WP is concerned. Which in turn creates unnecessary loading on the server, especially because that session is no longer required.
The reason I ask is that often this happens at night and on accounts where development work has been happening only during the day. This isn’t just me, but also other clients on other installs on our server.
Forum: Networking WordPress
In reply to: wp-cron causing excessive processesOK, well I’ve now upgraded all installs to WP 3.0.3 and I’m still getting these errors e.g.
Time: Sun Dec 12 02:23:19 2010 +0000 Account: <nameofuser> Process Count: 11 (Not killed) Process Information: User:<nameofuser> PID:9259 Run Time:216(secs) Memory:172296(kb) exe:/usr/bin/php cmd:/usr/bin/php /home/<nameofuser>/public_html/index.php User:<nameofuser> PID:9293 Run Time:213(secs) Memory:172288(kb) exe:/usr/bin/php cmd:/usr/bin/php /home/<nameofuser>/public_html/index.php User:<nameofuser> PID:9701 Run Time:206(secs) Memory:150268(kb) exe:/usr/bin/php cmd:/usr/bin/php /home/<nameofuser>/public_html/index.php User:<nameofuser> PID:17796 Run Time:67(secs) Memory:13876(kb) exe:/opt/suphp/sbin/suphp cmd:/opt/suphp/sbin/suphp User:<nameofuser> PID:17933 Run Time:55(secs) Memory:13876(kb) exe:/opt/suphp/sbin/suphp cmd:/opt/suphp/sbin/suphp User:<nameofuser> PID:19521 Run Time:51(secs) Memory:13876(kb) exe:/opt/suphp/sbin/suphp cmd:/opt/suphp/sbin/suphp User:<nameofuser> PID:19523 Run Time:51(secs) Memory:13876(kb) exe:/opt/suphp/sbin/suphp cmd:/opt/suphp/sbin/suphp User:<nameofuser> PID:19534 Run Time:50(secs) Memory:13876(kb) exe:/opt/suphp/sbin/suphp cmd:/opt/suphp/sbin/suphp User:<nameofuser> PID:19536 Run Time:50(secs) Memory:13876(kb) exe:/opt/suphp/sbin/suphp cmd:/opt/suphp/sbin/suphp User:<nameofuser> PID:19903 Run Time<nameofuser>:22(secs) Memory:13876(kb) exe:/opt/suphp/sbin/suphp cmd:/opt/suphp/sbin/suphp User:<nameofuser> PID:26372 Run Time:355(secs) Memory:171188(kb) exe:/usr/bin/php cmd:/usr/bin/php /home/<nameofuser>/public_html/index.phpThe files being reported can vary, but they’re generally the index.php or cron.php with some su php mixed in for good measure.
When several accounts are reporting these errors at the same time it then increases our server load immensely (and I mean 35/40-fold) which grinds everything to a halt. This normally happens during the night which I guess does indicate that its some kind of cron process running, as usage stats show that all of our sites generally don’t get much external traffic during night hours.
However, one time it happened during the day on an install that I was working on at the time (just simple CSS stuff). I found the server load just increasing exponentially for no apparent reason. When it was getting beyond a joke, I quit out of all my browser sessions (only a couple of tabs open for that site) and that seemed to immediately have an effect i.e. within a very short space of time, the server load had dropped back down to normal levels.
Coincidence – I dunno? Something’s odd and it also seems to be also happening on accounts that aren’t actually live yet i.e. they’re not having users generating content/logging in etc.
Any ideas or thoughts?
Forum: Installing WordPress
In reply to: Installing on Windows hostingHey thanks man.
Unfortunately the pretty permalinks is actually quite a nice feature in my mind (nicer than http://yourdomain.com/?p=1162 in any case). And I’ll be setting the site live on the Windows host having developed it all on my Linux platform. Ho hum…
Nice plug by the way!! 😉
Forum: Networking WordPress
In reply to: wp-cron causing excessive processesOK – well I’m just upgrading each one to 3.0.2 via Subversion, so I’ll see if that fixes it.
Thanks
Forum: Networking WordPress
In reply to: wp-cron causing excessive processesAnyone else experiencing this. Its happening on several of our accounts?
Forum: Networking WordPress
In reply to: How to run two different themes on the main site and subdomainMultisite is so what you need. Each blog within your site can have a different theme, plugins, widgets, content.
These instructions are how you would setup Multisite, but if you can’t follow them and if you’re that dire with computers, then you shouldn’t be attempting it! Also, depending on your host, you may not even be allowed to do it.
And as ipstenu says, you would need to get someone in to set it up for you…
Forum: Networking WordPress
In reply to: After installing a plugin my mulsite has disappeared!Good!
I would strongly suggest that you contact the plugin author to report your findings.
It certainly doesn’t sound the behaviour of a normal, happy plugin!
Forum: Networking WordPress
In reply to: After installing a plugin my mulsite has disappeared!Have you done a Network Activate or just activating that plugin for the one blog? I always try a new plugin on just one blog first, rather than activating it site wide.
Have you tried disabling the plugin – either via the Plugins section, or if your site has crapped out completely, then login via FTP or SSH and simply move that particular plugin directory out of the Plugins folder.
Does everything work again then?
Hmmmm, that made my dropdowns disappear! So I removed my funky CSS styling and still the same.
And looking in the source code for that page, the dropdowns weren’t even being parsed and displayed in raw HTML so they definitely weren’t there…
Yes there is a ‘Reset’ button, but it takes you back to the home page.
I notice elsewhere in this forum that you can change the URL of ‘Reset’ link by doing:
function my_qmt_base_url() { return get_page_link( YOUR_PAGE_ID ); } add_filter( 'qmt_base_url', 'my_qmt_base_url' );But would it not be even simpler to just clear the dropdowns and remain on whatever page you were currently on. The closest analogy would be like the familiar
<input type="reset" value="Reset">in a standard HTML form?