| | |||||||
| Steve Pavlina Discuss ideas, articles, and podcasts from StevePavlina.com. New threads are automatically generated for Steve's latest blog posts. |
| | Thread Tools | Display Modes |
| | #62 (permalink) |
| Master Join Date: Oct 2006 Location: Las Vegas, NV
Posts: 5,988
|
I can see exactly when the spikes are happening because I get emailed a report each time. There were 2 spikes today, including one about 20 minutes ago, and 4 spikes on May 3rd. As far as I can tell, the frequency of spikes hasn't changed over time. ServInt is working on this actively, so hopefully they can figure out what's happening. They already ran some diagnostics that revealed no problems thus far. |
| | |
| | #64 (permalink) | |
| Family Member Join Date: Nov 2006 Location: Berlin, Germany
Posts: 8,749
| Quote:
| |
| | |
| | #65 (permalink) |
| Senior Member Join Date: Sep 2009
Posts: 260
|
Is postgres used by anything else? If so, is there any co-relation with that? And would it be logical to try emulating the situation on another machine with the same configuration, especially since it doesn't seem to have much to do with the amount of users at the time?
|
| | |
| | #66 (permalink) |
| Master Join Date: Oct 2006 Location: Las Vegas, NV
Posts: 5,988
|
Good news -- we finally have a diagnosis of what's been causing these load spikes. And fortunately it's a problem that's very fixable. The problem is caused by a MySQL query in the WordPress plug-in WP-Email. This particular query populates the "Best of..." list in my blog's sidebar, based on how many times each post has been emailed using the WP-Email plugin. I've had this plug-in running on my site for a while now, so it has gradually built up a sizable database with more than 27,000 entries. That's how many people have used the "Email a friend" form since I last reset the data. Due to the size of the database, the way this particular query was written, and the inefficiency of the plug-in code, it can bog down the server at random times. ServInt did some optimizations to the server already, which should help alleviate the symptoms and make load spikes less likely. Meanwhile, I've contacted the plug-in's author, Lester Chan, to let him know of the problem and to suggest some possible code updates that would remedy it. Other high-traffic sites could run into the same problem with this plug-in. WP-Email is a very popular WordPress plug-in, so hopefully the author will be willing to optimize the code a bit. But if not, I have plenty of other options, such as resetting the plug-in database, deleting part of the database (entries older than a certain date), disabling the sidebar widget portion of the plug-in, replacing the plug-in with a different one, etc. For now I'm going to let things sit for a day or two to see if there are any more spikes, since it's possible that ServInt's optimizations may be enough. If there are more spikes, I can disable the sidebar widget until I decide on a better solution or get a fix from the plug-in's author. But either way, we should have this problem solved this week. Thanks for your patience. I'm sure it was quite a challenge for ServInt to diagnose this, so I'm happy they went the extra mile to figure out what was causing the load spikes. I never would have suspected a WordPress plug-in that has been running fine for years as the culprit. |
| | |
| Bookmarks |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Dear Steve and everyone else | KevinJay | Personal Effectiveness | 3 | 01-24-2009 01:13 AM |
| Is having sex with someone in your mind a signal for a future relationship? | JustBe | Social & Relationships | 8 | 12-05-2008 06:48 PM |
| Dear Forum | PieceOfMind | General & Introductions | 3 | 03-10-2008 05:59 PM |
| Dear Steve Pavlina | thef0x | Emotional Mastery | 13 | 12-03-2006 10:25 AM |
All times are GMT. The time now is 08:44 AM.




