Home Private Messages Search
CPG Dragonfly™ CMS Dedicated Server & Bandwidth Sponsored by DedicatedNOW
Toggle Content
 
Forums ⇒ Miscellaneous ⇒ Server Chat ⇒ slow page loads - high server load


slow page loads - high server load
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  Next
Post new topic    Reply to topic    Printer Friendly Page     Forum Index ⇒  Server Chat

View previous topic :: View next topic  
Author Message
SnoSheriff
Heavy poster
Heavy poster

Offline Offline
Joined: Mar 27, 2005
Posts: 174

PostPosted: Sat Apr 02, 2011 7:28 pm
Post subject: slow page loads - high server load

I noticed that recently my website is experiencing slow page loads. I'm running on dedicated server I have < dozen websites on it. The biggest site (DF CMS) and it has over 9000 members. The other sites are non significant. I'm running CentOS, 2.4Ghz Celeron, 2GB RAM, Cpanel/WHM, PHP5 and mySQL 5.0.92.

What can I do to optimize my server settings to make the website faster?

_________________
XJBikes.com

SnoSheriff's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Apache=1.3.41/MySQL=5.0.87-community/PHP=5.2.6/DFCMS=9.2.1
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 Apr 03, 2011 1:13 am
Post subject: Re: slow page loads - high server load

Not easy to tell, a software or a server can be slow for way too many reasons.
You need to debug, then act accordingly to your findings.

_________________
.:: 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
SnoSheriff
Heavy poster
Heavy poster

Offline Offline
Joined: Mar 27, 2005
Posts: 174

PostPosted: Sun Apr 03, 2011 4:43 am
Post subject: Re: slow page loads - high server load

NanoCaiordo wrote:
You need to debug, then act accordingly to your findings.
What would be the best way of debugging? DF software has not changed on the server. Only server OS and CPanel upgrades are being done automatically. I'm simply looking for some server optimization help.

_________________
XJBikes.com

SnoSheriff's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Apache=1.3.41/MySQL=5.0.87-community/PHP=5.2.6/DFCMS=9.2.1
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 Apr 03, 2011 6:32 am
Post subject: Re: slow page loads - high server load

In this case there is not "simply", look at the process list "ps aux" or use "top" ... these are basic commands. Hope it helps.

_________________
.:: 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
SnoSheriff
Heavy poster
Heavy poster

Offline Offline
Joined: Mar 27, 2005
Posts: 174

PostPosted: Sun Apr 03, 2011 4:29 pm
Post subject: Re: slow page loads - high server load

Are there any tweaks that you recommend in the "PHP Configuration Editor"?

_________________
XJBikes.com

SnoSheriff's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Apache=1.3.41/MySQL=5.0.87-community/PHP=5.2.6/DFCMS=9.2.1
Back to top
View user's profile Visit poster's website
InspectorClueNo
Heavy poster
Heavy poster

Offline Offline
Joined: Mar 26, 2008
Posts: 211

PostPosted: Mon Apr 04, 2011 12:09 am
Post subject: Re: slow page loads - high server load

it worked for me a while ago

if a table has PRIMARY KEY(id) and it also have UNIQUE KEY(id) then you have to delete the UNIQUE KEY

www.mysqlperformancebl...t-indexes/

Older versions of DF had this, new one doesn't


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

Offline Offline
Joined: Mar 27, 2005
Posts: 174

PostPosted: Mon Apr 04, 2011 12:16 am
Post subject: Re: slow page loads - high server load

Is that an issue on DF v9.2.1? If so, how do I fix this?

_________________
XJBikes.com

SnoSheriff's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Apache=1.3.41/MySQL=5.0.87-community/PHP=5.2.6/DFCMS=9.2.1
Back to top
View user's profile Visit poster's website
InspectorClueNo
Heavy poster
Heavy poster

Offline Offline
Joined: Mar 26, 2008
Posts: 211

PostPosted: Mon Apr 04, 2011 12:37 am
Post subject: Re: slow page loads - high server load

i don't know when it got fixed, perhaps CVS logs or changelogs may help

to delete them just use phpmyadmin, but make sure you understand what you need to delete I get no responsibility at all here

delete the UNIQUE KEY only if a PRIMARY KEY exists already for the same key


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

Offline Offline
Joined: Mar 27, 2005
Posts: 174

PostPosted: Mon Apr 04, 2011 12:44 am
Post subject: Re: slow page loads - high server load

Man, this site loads VERY fast. You think that the Developers would have their settings posted here so others can optimize their Dragonfly websites properly. Maybe such guide exists but I just don't know about it? I'm pulling my hair out here. Any assistance would be greatly appreciated.

_________________
XJBikes.com

SnoSheriff's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Apache=1.3.41/MySQL=5.0.87-community/PHP=5.2.6/DFCMS=9.2.1
Back to top
View user's profile Visit poster's website
InspectorClueNo
Heavy poster
Heavy poster

Offline Offline
Joined: Mar 26, 2008
Posts: 211

PostPosted: Mon Apr 04, 2011 1:14 am
Post subject: Re: slow page loads - high server load

SnoSheriff wrote:
Any assistance would be greatly appreciated.
have you done any of what we asked? if not why, if yes what's the result?

you obsessed by php settings, i'll post mine when i can

but i know some servers have output compression (if this is the one, anyway it does have something to do compression or gz) enabled, disable that if enabled.


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

Offline Offline
Joined: Mar 27, 2005
Posts: 174

PostPosted: Mon Apr 04, 2011 1:51 am
Post subject: Re: slow page loads - high server load

Quote::
PRIMARY KEY(id) and it also have UNIQUE KEY(id) then you have to delete the UNIQUE KEY
This sounds like DF software bug. I'm running the latest release v9.2.1. I'm not running CVS mode on my site so what is the best way to get this fixed?

Nano wasn't specific about what I need to look for. Keep in mind that I'm not a Linux Admin or PHP Developer. I know SQL and some coding but I'm not an expert programmer or administrator.

I need more concrete directions like:
Change Value X to X2 in Section A.
Run ABC and post first 10 lines...

_________________
XJBikes.com

SnoSheriff's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Apache=1.3.41/MySQL=5.0.87-community/PHP=5.2.6/DFCMS=9.2.1
Back to top
View user's profile Visit poster's website
SnoSheriff
Heavy poster
Heavy poster

Offline Offline
Joined: Mar 27, 2005
Posts: 174

PostPosted: Mon Apr 04, 2011 1:54 am
Post subject: Re: slow page loads - high server load

Not obsessed, just poking around and looking for direction and recommendations.

_________________
XJBikes.com

SnoSheriff's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Apache=1.3.41/MySQL=5.0.87-community/PHP=5.2.6/DFCMS=9.2.1
Back to top
View user's profile Visit poster's website
InspectorClueNo
Heavy poster
Heavy poster

Offline Offline
Joined: Mar 26, 2008
Posts: 211

PostPosted: Mon Apr 04, 2011 2:34 am
Post subject: Re: slow page loads - high server load

ssh into the server and type "top" (no quotes), by default process lists are ordered my cpu usage, have a look whats the process using more cpu

if is mysqld then: use phpmyadmin to delete duplicate keys

a bug in DF ... i think it was a phpnuke or an installer issue, supposed to be fixed in new DFs, but i guess an old bug in phpmyadmin shuffled things around confusing the water

nano said there is not "simply" here, well he does have a point and "change A to B" can't be easily done ... experienced debuggers with shell access may take few minutes to understand where the problem come from, and sometime to fix it

we going totally blind here I'll be surprised if we gonna be able to fix it


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

Offline Offline
Joined: Mar 27, 2005
Posts: 174

PostPosted: Mon Apr 04, 2011 3:09 am
Post subject: Re: slow page loads - high server load

I watched the TOP process run on the screen. CPU % increased when I saw 5 PHP processes being at the top of the list.

I also set my DF Security as per the attachment. When I had the Unkown User-Agents set to active my site users were receiving banned messages. "Unkown User-Agents"=Active increased the site performance but I had to deactivate it because the users were unable to access the site.

_________________
XJBikes.com

SnoSheriff's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/Apache=1.3.41/MySQL=5.0.87-community/PHP=5.2.6/DFCMS=9.2.1


Last edited by SnoSheriff on Mon Apr 04, 2011 11:29 pm; edited 2 times in total
Back to top
View user's profile Visit poster's website
InspectorClueNo
Heavy poster
Heavy poster

Offline Offline
Joined: Mar 26, 2008
Posts: 211

PostPosted: Mon Apr 04, 2011 3:48 am
Post subject: Re: slow page loads - high server load

in php.ini
output_buffering 0


InspectorClueNo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
none available
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic    Reply to topic    Printer Friendly Page    Forum Index ⇒  Server Chat
Page 1 of 2
All times are GMT
Go to page 1, 2  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.

pročitaj još...

   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