News: Welcome to the TinyPortal Support site.

Login  |  Register
HTML5 Icon HTML5 Icon
TP on Social Media
Welcome, Guest. Please login or register.
Did you miss your activation email?

August 21, 2019, 05:52:43 AM

Login with username, password and session length

Recent

Members
  • Total Members: 3751
  • Latest: tom888
Stats
  • Total Posts: 188690
  • Total Topics: 20745
  • Online Today: 41
  • Online Ever: 629
  • (November 08, 2018, 01:36:54 PM)
Users Online
Users: 0
Guests: 18
Total: 18

Author Topic: My website overloading server!!  (Read 21833 times)

0 Members and 1 Guest are viewing this topic.

bluedevil

  • Guest
My website overloading server!!
« on: October 11, 2007, 05:43:55 PM »
So i get this email today ... :-\

Quote
Heavy server resource consumption of your account

Dear *****,

I was monitoring the server that hosts your account midwestavalancheclub.com and while reviewing the logs noticed that your website was consuming a very high percentage of the server resources, thus endangered the overall performance of all the sites on the server. To keep the server at a normal CPU load, we had to limit the shared server resources your account may use. This may result in occasional "Resource temporary unavailable" error messages shown on your website.

I have conducted a detailed investigation and saw that the reason for the high resource consumption is the number internal links on your index page, which cause the page to load slowly and eventually hogs the server. The slow loading of the index page takes up lots of server CPU time and other processes have to pile up in a queue waiting to get executed. Thus, the server eventually gets overloaded with too many processes in queue.

Currently there are 195 internal and external links on your index page and this results in loading times of approximately 4 seconds seconds. For comparison, normally, a website loads in less than 1 second.

By internal links I mean links that point back to the site. A few examples:

189. http://www.midwestavalancheclub.com/index.php?topic=1369.msg12219#msg12219
190. http://www.midwestavalancheclub.com/index.php?topic=1658.msg14288;topicseen#new
191. http://www.tkqlhce.com/click-2149173-10418494
192. http://www.jdoqocy.com/click-2149173-10434190
193. http://www.jdoqocy.com/click-2149173-10434190
194. http://www.tkqlhce.com/click-2149173-10370829
195. http://www.jdoqocy.com/click-2149173-10434190

158. http://www.midwestavalancheclub.com/index.php?action=profile;u=148
159. http://www.midwestavalancheclub.com/index.php?action=profile;u=219
160. http://www.midwestavalancheclub.com/index.php?action=profile;u=124
161. http://www.midwestavalancheclub.com/index.php?action=profile;u=245
162. http://www.midwestavalancheclub.com/index.php?action=profile;u=211
163. http://www.dpbolvw.net/click-2149173-10428742
164. http://www.simplemachines.org/
165. http://www.simplemachines.org/about/copyright.php
166. http://www.tinyportal.net/
167. http://www.dzinerstudio.com/
168. http://www.gm.com/
169. http://www.chevrolet.com/
170. http://www.onstar.com/
171. http://www.xmradio.com/

To have this limitation removed, please reduce the number of internal links and external links on your index page. If this problem with your website is not resolved in 7 days we may need to SUSPEND YOUR ACCOUNT.

Please do NOT reply to this email. You can add comments on this issue by logging to your Customer Area (https://www.siteground.com/login_page.htm) and comment the ticket that has been automatically open on your behalf in connection to this case.

Sincerely,

S****
System Administrator
SiteGround.com

What am i going to do?   It took me over a year to make my website look the way it looks now.
« Last Edit: December 19, 2007, 06:19:03 AM by G6 »

Hairy

  • Guest
Re: My website overloading server!!
« Reply #1 on: October 11, 2007, 06:03:57 PM »
I don't understand how "links" can overload the server, I would start looking at a different host and request these guys to give you a refund on any outstanding fees you have paid.

Offline IchBin™

  • Developer
  • *
  • Posts: 16228
    • My Website
Re: My website overloading server!!
« Reply #2 on: October 11, 2007, 06:13:10 PM »
I think this is what happens when you start to out grow shared hosting. You'll need to upgrade to a bigger server probably. Just my $.02

bluedevil

  • Guest
Re: My website overloading server!!
« Reply #3 on: October 11, 2007, 06:14:42 PM »
this was my reply:

Quote
It took me over a year to make my website to look the way it looks now.

Does this means that i have to remove all links from the index page? can i move them somewhere else?

I dont understand non of it. Ive seen websites with millions of links and still active

and their reply again:

Quote
Thank you for contacting our Help Desk Center!

The problems comes when there are alot of links on a same page. In order to be displayed each link with its a href tags description etc. one or more mysql queries are being sent to your mysql database. When there are many links on a same page your web site produce alot of sql queries which increase the resource usage and endanger the overall server performance and the performance of the other customers web sites on the same server.

By the time we have logged this case a single php process spawned by your account was consuming %71.1 of the CPU resources.

You do not have to remove all links. Kindly decrease the number of links you have on your front page to at most 120 and your web site should perform much faster. You can re-organize your web site to show no more than 120 links on a page. This will boosts your web site performance as well. Thank you for your understanding.

Looking forward to your reply.

bluedevil

  • Guest
Re: My website overloading server!!
« Reply #4 on: October 11, 2007, 06:15:59 PM »
I think this is what happens when you start to out grow shared hosting. You'll need to upgrade to a bigger server probably. Just my $.02

and i thought they where good...   

geez....i dont know anything about whos better or bigger anymore.

Offline IchBin™

  • Developer
  • *
  • Posts: 16228
    • My Website
Re: My website overloading server!!
« Reply #5 on: October 11, 2007, 06:18:46 PM »
I think this is what happens when you start to out grow shared hosting. You'll need to upgrade to a bigger server probably. Just my $.02

and i thought they where good...   

geez....i dont know anything about whos better or bigger anymore.

Well I don't know a lot about those load issues, but I wonder if a bigger hosting account is what is needed? Something that will allow you to have this. I mean, is it really out of the norm to have those problems?

Hairy

  • Guest
Re: My website overloading server!!
« Reply #6 on: October 11, 2007, 06:21:37 PM »
Quote
Page created in 0.16 seconds with 45 queries

Thats what it says when I load your page, does not add up with what they are saying. It might be something else?

Hairy

  • Guest
Re: My website overloading server!!
« Reply #7 on: October 11, 2007, 06:25:45 PM »
geez....i dont know anything about whos better or bigger anymore.

I'm with 1and1.com but they aren't the best.

I've heard good things about http://hostmonster.com might be worth checking out

jacortina

  • Guest
Re: My website overloading server!!
« Reply #8 on: October 11, 2007, 06:39:30 PM »
Links are nothing but character strings. They are the URL's given above, plus a few bytes of surrounding HTML to note them as links and the text that actually gets clicked on.

They do not consume any resources beyond that used to send any other string of characters a few dozens of characters long. And they use the exact same resources whether they point to an address on your site or any other site.

That having been said, the PHP and MySQL processing which has to take place to get that info and then echo it it out WILL take longer and use more resources the more 'complex' the page is.

But in no way does every link require a database call. That's completely absurd and the sign of someone not at all familiar with how things work.

For instance, click 'Forum' to go to the Tinyportal Boardindex. Down at the bttom it tells you exactly how many queries were required. There are 30 links just between the Recent Posts listing and the 'Upcoming Birthdays' list in that bottom-of-page Info Center. Yet everything on the whole page only requires around 25 queries (this can fluctuate a bit, but that's what it showed when I checked).

Offline Ianedres

  • Friends
  • *
  • Posts: 684
  • $foo['ianedres'] < $foo['ichbin']
    • Clickity click dot dot dot com thingy
Re: My website overloading server!!
« Reply #9 on: October 11, 2007, 11:32:05 PM »
Sounds to me like they are either trying to convince you to upgrade ($$) or possibly have some type of pre-caching software on the server to load URLs stored on a page...

Nevertheless, if you are utilizing 71% on a normal basis, then you would probably see the traffic on your site at such a level that corresponds to what they say...

Offline Zetan

  • Friends
  • *
  • Posts: 3471
Re: My website overloading server!!
« Reply #10 on: October 12, 2007, 02:04:38 AM »
Have you tried this tool:
http://www.simplemachines.org/download/index.php?thanks;filename=status.php

From SMF?

Simply put it in your public folder and direct your browser to it.

From my status.php

Quote
MySQL Statistics
MySQL 4.1.x
Connections per second:  1.4179 
Kilobytes received per second:  6.098 
Kilobytes sent per second:  98.5185 
Queries per second:  41.2608 
Percentage of slow queries:  0 
Opened vs. Open tables:
(table_cache)  20209.2813 (should be <= 80) 
Table cache usage:
(table_cache)  1 (should be >= 0.5 and <= 0.9) 
Key buffer read hit rate:
(key_buffer_size)  0.0196 (should be <= 0.01) 
Key buffer write hit rate:
(key_buffer_size)  0.4774 (should be <= 0.5) 
Thread cache hit rate:
(thread_cache_size)  2296.4109 (should be >= 30 ) 
Thread cache usage:
(thread_cache_size)  0.75 (should be >= 0.7 and <= 0.9) 
Temporary table disk usage:
(tmp_table_size)  0.1741 (should be <= 0.5) 
Sort merge pass rate:
(sort_buffer)  0 (should be <= 0.001) 
Query cache enabled:
(query_cache_type)  1 (should be >= 1 and <= 1) 
Query cache miss rate:
(query_cache_limit)  0.3829 (should be <= 0.5) 
Query cache prune rate:
(query_cache_size)  0.3509 (should be <= 0.05) 


etc.. etc..

Offline bloc

  • Founder
  • *
  • Posts: 5216
    • Bloc
Re: My website overloading server!!
« Reply #11 on: October 12, 2007, 02:48:58 AM »
Can only agree with others here, just links do not create queries. By looking at your index page I see 47 queries used. thats a little over normal, but not unusual since you are using among other things, random gallery images. Some other blocks as well might create more connections. But its not really extreme or anything, since you don't have too many visitors at any time either.

One thing that can contribute to it, is if you are using any mysql calls that DON'T use db_query..as that is NOT calculated into that info down on the page. It may then be quite a few extra..and certainly way too much. But again, for example simple webshop scripts use up to 70-100 connections on a page load, so its really a sign of the need to move to another host imho.

bluedevil

  • Guest
Re: My website overloading server!!
« Reply #12 on: October 12, 2007, 10:32:43 AM »
Thanx for all the inputs.  I turned off several links,blocks,etc.  The front page is a lot smaller than before.

My reply last night:
Quote
I made some changes but not sure if its enuff. Could you test again?

Theirs:
Quote
Hello Michaelangelo,

Thank you for following our recommendations.

Please allow us some time to review the current behavior of your web site and we will update this ticket shortly.

Thank you for your patience.

Best Regards,

Valentin
Support Team
SiteGround.com

Theirs:
Quote
Hello Michaelangelo,

Your web site performs much better now. Our system administrators reviewd its CPU and memory consumption and now everything seems to be so they removed the limitations from your account. We are now marking your case as resolved.

Should you have any further questions or comments, please do not hesitate to contact us and we will be happy to assist you!

Best Regards,

Valentin
Support Team
SiteGround.com


oh yeah....they offered me a dedicated server.   I think not!


keith021773

  • Guest
Re: My website overloading server!!
« Reply #13 on: October 12, 2007, 01:46:36 PM »
Quote
oh yeah....they offered me a dedicated server.   I think not!

I think that right there tells you what they wanted.   :)    I do have 2 sites thru siteground.   I had my main site there too, but moved it because they started giving me problems..

Glad you got it worked out..

Offline IchBin™

  • Developer
  • *
  • Posts: 16228
    • My Website
Re: My website overloading server!!
« Reply #14 on: October 12, 2007, 05:38:09 PM »
Good news Blue! But as Keith said, it showed you what they really wanted. :)

bluedevil

  • Guest
Re: My website overloading server!!
« Reply #15 on: October 12, 2007, 09:39:40 PM »
You know?    I think i like how it looks now.  Less links in the front page. It doesnt look busy anymore.

I read somewhere that if having too many links in one page,spiders wont crawl it?

any truth to that?

Ricky.

  • Guest
Re: My website overloading server!!
« Reply #16 on: December 14, 2007, 12:28:22 AM »
Now your page is pretty fine.. .102 sec to create index page..
Can you tell me what actually u did and what was real cause of problem ?

This is becs I am somehw now in same condition but I m not on shared host.. but on dedicated but I have to take care about my server.. isn't ?:)

Offline IchBin™

  • Developer
  • *
  • Posts: 16228
    • My Website
Re: My website overloading server!!
« Reply #17 on: December 14, 2007, 09:20:01 AM »
If you read up a couple of posts you'll see that he tells you exactly what he did.

Ricky.

  • Guest
Re: My website overloading server!!
« Reply #18 on: December 19, 2007, 06:18:09 AM »
Ya .. I read that just after posting !!