Home Private Messages Search
CPG Dragonfly™ CMS stopsoftwarepatents.eu petition banner
Toggle Content
 
Forums ⇒ Miscellaneous ⇒ Server Chat ⇒ Site using too many resources


Site using too many resources
Talk about good (DedicatedNOW) and bad (AdventureHost) hosts, or any other question about servers and hosting, but no advertising or pricing in any form.
Go to page 1, 2, 3, 4  Next
Post new topic    Reply to topic    Printer Friendly Page     Forum Index ⇒  Server Chat

View previous topic :: View next topic  
Author Message
rosbif
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Jan 13, 2005
Posts: 593
Location: Paris, France
PostPosted: Sat Oct 29, 2011 8:45 am
Post subject: Site using too many resources

My site has just been suspended for using too many resources. I've not changed anything (haven't got round to upgrading to latest version yet) so nothing has changed. Is this my problem or their problem?

Quote::

After some recent problems with the server milton.site5.com we found that your site chantillyexpat.com is causing those problems due to your site's resource usage. Your site is using too many system resources (CPU and Memory) for shared hosting. With shared hosting you are sharing the hardware resources with other people and unfortunately your site is using more than it's fair share. Unfortunately this means that your site is going to need dedicated hardware resources.

Here is a summary of your CPU and memory usage on your account over the past 24 hours:

CPU: 28.52%
MEM: 0.18%

We believe the processes shown below are responsible for this level of resource usage, please keep in mind if you run a dynamic site off WordPress or another script it might just show index.php which is the primary file that runs the entire site:

-----------------------
Top Process %CPU 186 /usr/bin/php /home/user/public_html/index.php
Top Process %CPU 169 /usr/bin/php /home/user/public_html/index.php
Top Process %CPU 139 /usr/bin/php /home/user/public_html/index.php
-----------------------


rosbif's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
ChantillyExpat.com - Others-
Back to top
View user's profile Visit poster's website
Phoenix
• Many Posts •
• Many Posts •

Offline Offline
Joined: Apr 19, 2004
Posts: 8799
Location: Netizen
PostPosted: Sat Oct 29, 2011 9:20 am
Post subject: Re: Site using too many resources

Quite clearly the problem is yours - they have nailed you quite specifically and 28% of CPU over 24 hours is very high.

It's now up to you to work out what was hammering your site and you'll have to examine your server stats to work that out.

_________________
DonationsPro for DragonflyCMS, SMF, MyBB, vBulletin

Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website Photo Gallery
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Sat Oct 29, 2011 9:27 am
Post subject: Re: Site using too many resources

Check, or ask them to check, your access logs.
Then if you have been hammered, you may think to upgrade and turn security flooding on which is a lot more stable in latest version.

Your footer is missing of page generation and memory usage, however calendar could be the issue.

Keep us posted.

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
mixed
Back to top
View user's profile Visit poster's website Photo Gallery
layingback
Forum Admin
Forum Admin

Offline Offline
Joined: Apr 19, 2004
Posts: 1040

PostPosted: Sat Oct 29, 2011 3:42 pm
Post subject: Re: Site using too many resources

Hmm, something's changed. A few hours ago the times for Pro_News MySQL accesses were higher than I would expect by a factor of 5 or so, now they are very, very low.


EDIT: And this morning it's back to slow again ...

_________________
Pro_News: The complete module for Dragonfly - now available as version 3.3

layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6 - 3.6 / 1.3.42 - 2.2.12 / 5.0.92 - 5.1.37 - 5.1.54 / 4.4.49 - 5.2.17 - 5.3 / 9.2.1
Back to top
View user's profile Visit poster's website Photo Gallery
rosbif
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Jan 13, 2005
Posts: 593
Location: Paris, France
PostPosted: Sun Oct 30, 2011 12:17 pm
Post subject: Re: Site using too many resources

layingback wrote:
Hmm, something's changed. A few hours ago the times for Pro_News MySQL accesses were higher than I would expect by a factor of 5 or so, now they are very, very low.


EDIT: And this morning it's back to slow again ...

Is that a server change or something else?


rosbif's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
ChantillyExpat.com - Others-
Back to top
View user's profile Visit poster's website
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Sun Oct 30, 2011 12:54 pm
Post subject: Re: Site using too many resources

Inspect server logs or at least install ip tracker Wink

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
mixed
Back to top
View user's profile Visit poster's website Photo Gallery
rosbif
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Jan 13, 2005
Posts: 593
Location: Paris, France
PostPosted: Sun Oct 30, 2011 4:11 pm
Post subject: Re: Site using too many resources

My host tells me just today that the following IPs have visited (along with the number of visits), giving me high usage today too. The second one is a Bing bot. Would flood control help - or the latest DF?

Quote::
762 123.126.50.67
614 157.55.116.16
515 88.88.135.104
326 91.85.216.55
318 66.249.71.218
238 157.55.39.90
162 125.168.1.17
118 46.165.197.141
46 94.228.34.224
31 90.58.50.135


rosbif's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
ChantillyExpat.com - Others-
Back to top
View user's profile Visit poster's website
Dizfunkshunal
Platinum Supporter
Platinum Supporter

Offline Offline
Joined: Mar 23, 2006
Posts: 2064

PostPosted: Sun Oct 30, 2011 4:45 pm
Post subject: Re: Site using too many resources

yes flood control helps. Updating to latest version is always good. Flood Control has been improved in 9.3 i believe.

see if you cant get the user string for the bots not following robots.txt.
Make sure your robots txt is still there to. Might have been accidentally deleted or something.

_________________
Diz Web Design Status: Open (Use of resources requires registration.)

Dizfunkshunal's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Multiple Setups
Back to top
View user's profile Send e-mail Visit poster's website Yahoo Messenger
rosbif
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Jan 13, 2005
Posts: 593
Location: Paris, France
PostPosted: Sun Oct 30, 2011 5:30 pm
Post subject: Re: Site using too many resources

Looking at my AWStats 88% of hits get a 404 file not found or a 403 forbidden response. Most of the 404s are malformed URLs. I presume these are all bots. It reports the bot access (top three) as this (the + number is how many times robots.txt is found:

Unknown robot (identified by 'spider') 223,543+489 2.88 GB 30 Oct 2011 - 07:11
MSNBot 114,652+68 1.34 GB 30 Oct 2011 - 07:11
Yahoo Slurp 102,020+119 1.19 GB 30 Oct 2011 - 05:48

which is pretty massive! I'll try and update to the latest version this week and then see if it makes any difference...


rosbif's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
ChantillyExpat.com - Others-
Back to top
View user's profile Visit poster's website
greenday2k
Forum Admin
Forum Admin

Offline Offline
Joined: Aug 11, 2005
Posts: 489
Location: CO
PostPosted: Sun Oct 30, 2011 6:04 pm
Post subject: Re: Site using too many resources

if Flood filter isnt enough, check/Use Cloudflare.com and you're done.

Works like a charm with Dragon Fly, but if you may have OLD modules or installed: On cmsinit (at the begging), so OLD modules and blocks get the real IP (DragonFly core fuctions are fine and they detect the real ip :l33t: )

$_SERVER['REMOTE_ADDR'] = isset($_SERVER["HTTP_CF_CONNECTING_IP"]) ? $_SERVER["HTTP_CF_CONNECTING_IP"] : $_SERVER["REMOTE_ADDR"];

_________________
www.greenday2k.net


greenday2k's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website MSN Messenger Yahoo Messenger
InspectorClueNo
Heavy poster
Heavy poster

Offline Offline
Joined: Mar 26, 2008
Posts: 211

PostPosted: Sun Oct 30, 2011 10:44 pm
Post subject: Re: Site using too many resources

maybe something like this would help

PHP:
if (ISBOT && get_cpu_usage() > X) {
header('503 Service Unavailable');
header('Retry-After: 600');
exit;
}

Note: ISBOT and get_cpu_usage() doesn't really exists in df ...


InspectorClueNo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
none available
Back to top
View user's profile Visit poster's website
NanoCaiordo
Developer
Developer

Offline Offline
Joined: Jun 29, 2004
Posts: 3878
Location: Melbourne, AU
PostPosted: Mon Oct 31, 2011 6:51 am
Post subject: Re: Site using too many resources

Back to the issue.

Reading logs is not an easy task, also knowing what to look for is always a variable.

Install IP Tracker, let it run at least till next slow down and then we'll look into it.

_________________
.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10


NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
mixed
Back to top
View user's profile Visit poster's website Photo Gallery
rosbif
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Jan 13, 2005
Posts: 593
Location: Paris, France
PostPosted: Mon Oct 31, 2011 2:21 pm
Post subject: Re: Site using too many resources

Right, have upgraded to the latest version and have flooding turned on (as it was before). I have installed IP tracker. Now what do I do with the information it gives me?

Incidentally I note that Baidu has been tracked already, and yet my robots text has the lines:

User-agent: Baidu
Disallow: /

Is it just a very naughty bot? Wink


rosbif's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
ChantillyExpat.com - Others-
Back to top
View user's profile Visit poster's website
rosbif
500+ Posts Club
500+ Posts Club

Offline Offline
Joined: Jan 13, 2005
Posts: 593
Location: Paris, France
PostPosted: Wed Nov 02, 2011 4:43 pm
Post subject: Re: Site using too many resources

Am still trying to block Baidu but it's ignoring robots.txt. I have banned the range 220.181.108.1 - 220.181.108.255. Does anyone else have a decent blocking range for chinese IP addresses? They feature heavily on IPTracker and I'm told my site is still using too many resources.


rosbif's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
ChantillyExpat.com - Others-
Back to top
View user's profile Visit poster's website
Phoenix
• Many Posts •
• Many Posts •

Offline Offline
Joined: Apr 19, 2004
Posts: 8799
Location: Netizen
PostPosted: Wed Nov 02, 2011 9:56 pm
Post subject: Re: Site using too many resources

Using phpmyadmin, in table cms_security_agents:
- find the Baidu bot entry
- change the agent_ban field to -1

Yandex is also another useless Russian bot that consumes resources.
In the same table, find the YANDEX bot:
- change the agent_ban field to -1

Now wait for their session to finish or remove their entries from your session table.

_________________
DonationsPro for DragonflyCMS, SMF, MyBB, vBulletin

Phoenix's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Back to top
View user's profile Visit poster's website Photo Gallery
Display posts from previous:   
Post new topic    Reply to topic    Printer Friendly Page    Forum Index ⇒  Server Chat
Page 1 of 4
All times are GMT
Go to page 1, 2, 3, 4  Next



Jump to:  


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


 
   Toggle Content User Info

Welcome Anonymous

Nickname
Password
(Register)

   Toggle Content Last CVS commits
· Fixed .ico Expires header.
· Removed domain name from cookies so subdomains wont access them anymore.
· CSS and JS, case insensitives.
· CSS and JS, send correct HTTP 1.1 headers and fixed issues where themes and...
· Further security class improvements.
· 301 redirects on LEO changes
· Option to force 3xx http status codes
· Validate googlebot.com and google.com crawlers.
· CCBot
· Rss with etag and atom.

อ่านต่อ...

   Toggle Content Community

Support for DragonflyCMS in a other languages:

Deutsch
Español

   Toggle Content X-links
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy