Home Private Messages Search
CPG Dragonfly™ CMS stopsoftwarepatents.eu petition banner
Toggle Content
 
Forums ⇒ Miscellaneous ⇒ Server Chat ⇒ High Server Load


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 Previous  1, 2
Post new topic    Reply to topic    Printer Friendly Page     Forum Index ⇒  Server Chat

View previous topic :: View next topic  
Author Message
hqarrse
Diamond Supporter
Diamond Supporter

Offline Offline
Joined: Mar 20, 2005
Posts: 177

PostPosted: Tue Jun 05, 2007 1:48 pm
Post subject: Re: High Server Load

I run monyog by using ssh tunneling in Putty, which seems to be what you've done? As far as monyog is concerned therefore it is connecting to a local mysql. This is described here:

realprogrammers.com/ho...putty.html

I then tell monyog to login as my mysql root user and off it goes.

The effect of exceeding your configured max connections from the users point of view is a database error message, but this is much better than crashing the server by allowing mysql to attempt to deal with too many connections and be forced to use swap space - as I said you then enter a vicious circle.

_________________
Olive Net
British Army
Royal Navy
Military Clothing and Equipment - This Tribe

hqarrse's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Slackware 12 / CentOS, PHP 5.6, MySQL 5, Apache 2
Back to top
View user's profile Send e-mail Visit poster's website
hqarrse
Diamond Supporter
Diamond Supporter

Offline Offline
Joined: Mar 20, 2005
Posts: 177

PostPosted: Tue Jun 05, 2007 1:53 pm
Post subject: Re: High Server Load

By the way, this overloading is happening to me again at the moment as we've got busier - will the nightmare never end??!! This time I think the problem is elsewhere, perhaps the level of traffic on the network between the apache and mysql servers. Anyway if I discover any exciting new ways to keep things going against all odds, I'll post em here Smile

_________________
Olive Net
British Army
Royal Navy
Military Clothing and Equipment - This Tribe

hqarrse's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Slackware 12 / CentOS, PHP 5.6, MySQL 5, Apache 2
Back to top
View user's profile Send e-mail Visit poster's website
hqarrse
Diamond Supporter
Diamond Supporter

Offline Offline
Joined: Mar 20, 2005
Posts: 177

PostPosted: Wed Jun 06, 2007 10:01 am
Post subject: Re: High Server Load

A very useful tuning guide:

www.shinguz.ch/index.h...g_key.html

_________________
Olive Net
British Army
Royal Navy
Military Clothing and Equipment - This Tribe

hqarrse's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Slackware 12 / CentOS, PHP 5.6, MySQL 5, Apache 2
Back to top
View user's profile Send e-mail Visit poster's website
Marcus81
Newbie
Newbie

Offline Offline
Joined: Jun 01, 2005
Posts: 47
Location: Beograd
PostPosted: Wed May 07, 2008 9:08 pm
Post subject: Re: High Server Load

Hello people,

This is me again...

I transfer my site on dedicated server
AMD Athlon 64 X2
5600+ Dual Core
4 GB DDR2 RAM
2 x 400 GB SATA II

Server and CMS versions is:

CMS Version 9.1.1
PHP Version 5.2.0-8+etch10
MySQL Version 5.0.32-Debian_7etch5 (client: 5.0.32)
Apache2


Site have about 18 000 members, about 4000 unique visitors per day. Size of datebase is 248.4 MB

Load is about 2 , and in the moments goes to 5-6-7-8-9 Sad
At the time, site have about 70-80 visitors maximum.

How can this small numbers of visitors make such high load ?

The main prolem is with MySQL.. CPU of MySQL

13665 mysql 15 0 164m 44m 5888 S 161 1.1 15666:09 mysqld

this 161 is CPU usage!
How it can be?

What I have to do to optimize my mysql server or mysql datebase ?
One friends tell me that is because Dragonfly have many JOIN in sql queries and queries is not optimized.

I have little research through phpmyadmin and find some interesting things in "Process list" and then "Status" in PhpMyAdmin

This is what I found red there..

Slow_queries 37 The number of queries that have taken more than long_query_time seconds.

Handler_read_rnd 105 M The number of requests to read a row based on a fixed position. This is high if you are doing a lot of queries that require sorting of the result. You probably have a lot of queries that require MySQL to scan whole tables or you have joins that don't use keys properly.

Handler_read_rnd_next 216 G The number of requests to read the next row in the data file. This is high if you are doing a lot of table scans. Generally this suggests that your tables are not properly indexed or that your queries are not written to take advantage of the indexes you have.

Created_tmp_disk_tables 30 k The number of temporary tables on disk created automatically by the server while executing statements. If Created_tmp_disk_tables is big, you may want to increase the tmp_table_size value to cause temporary tables to be memory-based instead of disk-based.


Select_full_join 1,777 k The number of joins that do not use indexes. If this value is not 0, you should carefully check the indexes of your tables.

Sort_merge_passes 1,684 The number of merge passes the sort algorithm has had to do. If this value is large, you should consider increasing the value of the sort_buffer_size system variable.


Anybody have idea how to solve this problem?

Some people tells me that on such a server I can't have a load at all Rolling Eyes

Thank you for help


Marcus81's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Dragonfly 9.1.1 / Apache/ PHP 4.4.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: Fri May 09, 2008 9:14 am
Post subject: Re: High Server Load

How long ago have you analized your tables?

_________________
.:: 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
DJ Maze
Developer
Developer

Offline Offline
Joined: Apr 19, 2004
Posts: 5683
Location: http://tinyurl.com/5z8dmv
PostPosted: Fri May 09, 2008 2:21 pm
Post subject: Re: High Server Load

After that activate slow query logging for a few hours.
Then post the slow query log here (gzip/bzip compressed please)


DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Fedora 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
Back to top
View user's profile Visit poster's website Yahoo Messenger Photo Gallery
SnoSheriff
Heavy poster
Heavy poster

Offline Offline
Joined: Mar 27, 2005
Posts: 174

PostPosted: Sun Apr 03, 2011 11:19 pm
Post subject: Re: High Server Load

Did you guys solve your "High Server Load"? I'm having the same issues and it's bringing my site to a crawl.

_________________
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
Display posts from previous:   
Post new topic    Reply to topic    Printer Friendly Page    Forum Index ⇒  Server Chat
Page 2 of 2
All times are GMT
Go to page Previous  1, 2



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.

lesa meira...

   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