Results 1 to 10 of 37
-
28th Jul 2012, 04:52 PM #1OPMember
Website shutdown because of 40% CPU load
My website was hosted by a free host for 2 months without complaints, then I moved to a new paid host, and it got shutdown after some hours because it created a 40% load on their Xenon 8 core CPUs?!
Though they say they will take a look at it too see if they can correct anything that is brutally wrong in the scripts, I thought that I wanted to help too (it is my site duh).
I'm not a PHP expert, I'm learning and coding a lot though every week.
My website is very db heavy I think, it is basically a front-end UI for listing the stuff in the DB and allowing the user to interact with it.
I don't have that much stats on it, but I know that I had ~300 daily visits every day when it got shutdown, and probably a lot more outer calls to the API I wrote.
So I am not sure what caused that load since I am inexperienced with web coding. I do have a shoutbox accessible on all of the few pages, which makes a query to the db every 3 seconds to check for new messages when the site is open. But still, I've seen lots and lots of sites with shoutboxes so I doubt that is the problem.
Since the load is so damn big compared to the average user (which they say is 1-2%) I thought that maybe someone here have a clue about the problem even though I don't provide the source code of the page.
So yeah, if anyone feels like throwing out a clue idea, please do!
I really feel I have abandoned my users since the website is downtoxicious Reviewed by toxicious on . Website shutdown because of 40% CPU load My website was hosted by a free host for 2 months without complaints, then I moved to a new paid host, and it got shutdown after some hours because it created a 40% load on their Xenon 8 core CPUs?! Though they say they will take a look at it too see if they can correct anything that is brutally wrong in the scripts, I thought that I wanted to help too (it is my site duh). I'm not a PHP expert, I'm learning and coding a lot though every week. My website is very db heavy I think, it is Rating: 5
-
28th Jul 2012, 05:04 PM #2MemberWebsite's:
sexybabess.info40% cpu use is kinda high I guess this new host believe your gonna run a torrent script or rapid leech so they banned you
-
28th Jul 2012, 05:17 PM #3Member
Shoutbox isn't even hosted on your server so it shouldn't even cause cpu usage issues.
You either had some weird loop or your not telling the whole story.
-
28th Jul 2012, 05:41 PM #4OPMember
I promise you that I haven't any weird things running, no rapidleech or torrent. Basically just lots of mysql queries. Everything else are by mistake/errors.
-
28th Jul 2012, 06:00 PM #5Member
Then it doesn't seem like PHP is the culprit. It would be more of your sql optimization.
-
28th Jul 2012, 06:20 PM #6Member
-
28th Jul 2012, 07:11 PM #7OPMember
Yeah I think mysql is the load boss. The host sent me a picture of the load meter when it was at 40%, but on that picture I also saw a tab that said mysql. Since I no longer have a running website no data is generated, but he really should have sent me that data as well too directly see if mysql was the theif.
-
29th Jul 2012, 12:28 AM #8Member
300 visits a day... that's 13 visitors an hour. There's no way MySQL could be jacking things up that high at such a low hit rate. Even if you had a massive database incorrectly indexed and a ridiculous amount of queries per page, it should never go that high.
You're tying everyone's hands behind their backs by not saying what kind of site it is, what kind queries are issued, the quantity of said queries, and what system you're using, unless it's custom.Coder for hire. I'm an experienced web developer with vast knowledge of PHP, HTML, CSS, MySQL, JavaScript, SEO, and web servers. I also write code for Windows programs with Visual Basic and C#.NET.
All products are written quickly with efficiency, and security in mind.
-
29th Jul 2012, 03:20 AM #9MemberWebsite's:
Royaloffshore.net300 visitors are too much 40% load. There should something more. I know a site in my server that getting way more than 5000 visitor p/d and the load is just as normal.
Try Caching your site as I think not only the mysql is the culprit here also non optimized php, js, image, css all can be responsible for 40% Load!
You should provide some more info about your scripts as we cannot give any dime clue on it without knowing anything about ur db query, loop thingy.
-
29th Jul 2012, 03:54 AM #10Member
I had such an issue before, but the hosting support team checked it theirselves and fixed it.
If your website is a wordpress site, then it can be from one of your plugins. That is what my issue was coming from.
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Website Load/Capacity Testing
By jamilv in forum Webmaster DiscussionReplies: 0Last Post: 22nd Aug 2012, 08:40 PM -
Want to know your website load speed?
By DoggY DuKe in forum Useful SitesReplies: 4Last Post: 14th Dec 2011, 12:50 AM -
Check Website Load Time & Provides Optimizations
By viruz99 in forum General DiscussionReplies: 2Last Post: 7th Oct 2011, 08:08 PM -
Fajax - How to make your Website/Forum "load" faster
By Smith in forum Webmaster ResourcesReplies: 5Last Post: 30th Oct 2010, 05:22 AM -
Website does not load in browser but does in proxy
By StarTech in forum Technical Help Desk SupportReplies: 2Last Post: 31st Mar 2010, 07:36 AM
themaLeecher - leech and manage...
Version 5.03 released. Open older version (or...