here earlier and posting didn't work, I jumped the gun and didn't fully test it.
This is the new static IP for nepadigital , the only thing I need to do now is wait for the new DNS entry to
propagate so nepadigtal.com correctly resolves to this IP. Once that is complete I'll move this out of
the temporary directory back the neapdigital.com/bb .. Once that's done its completely back to normal.
DNS usually takes about 1 to 3 days and i have no control over it.
This forum is completely functional as far I know but I have not checked for every possible issue,
if you come across anything let me know. Specifically I need the exact error text you encounter and what
you were doing when the error occurred.
So onto the story..This all started about the last two weeks in October, I was checking over my stats
and noticed a huge spike in the CPU. I wasn't keeping up on it because historically for the amount of traffic
I was generating it wasn't an issue. I was easily going to go over the limit but the numbers didn't add up
according to previous stats. For example:
In Feb. of 2007 I served 167,743 pages, the cpu usage was 43.85% .
In June of 2007 I served 77,962 pages and used 27.60% of my allotted CPU.
In July I served 84,482 pages only 10,000 more than in June but the CPU balloons to 55.40%.
In September 2007 I served 119,871 pages nearly 50,000 less than in In Feruary yet the CPU
usage is now at 105.67% more than double for February.
Obviously there is something wrong here, so I started going over my scripts to see what could
be the problem. The trouble is I didn't really add or change anything in those months so I didn't
know where to start. Removing some of the features on the forum didn't help at all. The biggest
issue is I didn't have the tools to determine what the problem is. I have one number and that's
the total percentage and it was only updated every 24 hours. So I'd make some changes and
wait. Add that to the fact traffic is increasing daily and I have some trouble on my hands.
At the end of October the CPU usage has reached 250% my allotted amount and I get this e-mail:
Dear Customer,
Over the past month, we have been monitoring the resource usage of your Web site on our Shared hosting server. We would like to think that, with the amount of resources your site is consuming, your business is doing very well these days. Unfortunately, the plan you are currently using no longer meets your site's requirements. We would like to invite you to review the current plans we offer, available at http://hosting.aplus.net/, and have you choose a more appropriate one for your site to avoid a disruption in service.
For your convenience, we have included a brief summary of your current plan as well as the suggested plan that we think will better suit your needs:
Server : pro10.abac.com
Registration # : XXXXXXXXXX
Current Plan : Solo XR
Username : XXXXXXXXXX
Overuse : 38min CPU time daily
Suggested Plan : ePro
So now I got a week to fix it, I have to give them credit for giving me some leeway.
LOL 16 minutes is my allotment, this BTW I've found out is ridiculously low by any standards. So I call up tech support
and explain the situation with the disparity in the stats. Absolutely no help what-so-ever, just some guy
sitting in front of knowledge base that has less knowledge than me giving me canned answers. I've
been a customer with this company for 5 years and have never had to deal with their
"tech support". There suggestion was I need to upgrade to a $39 a month plan (which BTW is outrageous for
what they are offering).
So in the early morning hours of Nov. 4th I do the last thing I can think of. I install phpbb3. If it's a problem
with the scripts this will undoubtedly fix it because there is no modifications. However I get hit by the
"perfect storm". It didn't occur to me that people would be clicking all over the place. Add to that Google
has a index update (see the first post for Nov 4)and now decides it wants
to be my best friend and just about doubles the referrals, between the two page views double
now serving 25,000+ pages a day and the meter hits 950% for the days allotment on Nov.5 .
Here's some stats, note that thes are just web stats and don't include CPU.
Even the highest plan they have will not cover this besides the $99 a month dedicated server, to give you
an idea a dedicated server could handle a thousand people online at once. So now I'm getting desperate
and I contact tech support again and they suggest I contact the Security Assurance Department because
they are the ones that handle over usage.
So I fire off a letter to the "Security Assurance Department" representative:
Server : pro10.abac.com
Registration # : xxxxxxxxx
Current Plan : Solo XR
Username : xxxxxxxxx
Overuse : 38min CPU time daily
I've been attempting to correct this myself but cannot get any answers from
your support staff so I'll explain it one more time. First I'm aware the
current plan is not going to meet my needs. However the CPU usage is
astronomical and doesn't make sense. I'll give you a time line of events and
you can confirm this yourself if you wish.
In Feb of 2007 I served 167,743 pages, the cpu usage was 43.85% .
In June of 2007 I served 77,962 and used 27.60% of my allotted CPU.
In July I switched to PHP5 in the hosting control panel, served 84,482
pages only 10,000 more than in June but the CPU balloons to 55.40%. This I
think is important and where things go wrong. I've since returned it PHP4
and that hasn't helped.
In September 2007 I served 119,871 pages nearly 50,000 less than in In
Feruary yet the CPU usage is now at 105.67%.
I must emphasize that there was no major changes that I can remember to the
scripts between Feb. and Sept. that I'm running. The only major change was
switching to PHP5 . Just to add I've been trying to fix this myself long
before this notice came, by removing features on my forum but all to no
avail. Historically the SQL queries were always a higher percentage than the
CPU right up until I switched to php5.
I've requested information more than once as to exactly what is using all
this CPU because I don't have shell access to get it myself. Without knowing
what the problem is I can't solve it.
As I said I'm willing to upgrade and it appears that I have too however I do
not simply throw money at problems. I attempt to solve them and in this case
it doesn't look like throwing money at it would even help. Something is
definitely wrong and I think it's wrong on your part considering all the
above information. I've been a customer for well over 5 years, if I cannot
get any assistance in solving this I'll be switching hosts.
And his response:
You can monitor your resource usage from your monitor tool in your
control panel. I've notice that you are exceeding your CPU time usage
and you mentioned that you haven't changed anything recently.The CPU
usage can't be explained only with a script issue it may be caused by
blogs, galleries etc. In this case will be wise to implement robots.txt
file in your hosting and by doing so prevent search engines crawlers to
go thru your pictures.If you have a lot of pictures or big pictures,
this could be the main reason for your CPU time over usage.Unfortunately
we can not go over and revise your page and how it is setup because this
will involve checking on the coding, the structure of the site and other
add ons such as forums, blogs or forms.This whole process will take time
and resources and unfortunately revising of the code is considered as
paid support.
Regards,
Aplus.Net Security Assurance Department
Now I'm convinced they are all idiots, robots.txt is in use and I know exactly how many pages
Google crawls on this site, 500-1000 a day, it's a lot but under normal circumstance only about 10%.
Other bots don't add to much
This isn't even a canned message because pictures don't eat CPU they eat bandwidth. The only way
images could eat CPU is if you're resizing many of them dynamically all the time. This forum does
that to create thumbs but only once per picture, just to add I resized 1000's of them at once server
side once on another site and the CPU wasn't affected much.
So it's back to tech support and finally I get them to have an admin look at the situation, I figure
someone has to know something there. I specifically request information on the the top scripts broken down
by percentage. I get this shortly after :
Dear customer,
We are writing you regarding TID 200817. Our administrators
explained that the reason for the abuse is in your php
scripts.
Sincerely Yours,
Customer Care Representative
Stay tuned for part II , same bat channel , same bat time.
