Go Back   Pligg CMS Forum > Pligg Development > Bug Report

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-01-2007, 03:16 AM
Designer
 
Join Date: Jan 2006
Posts: 118
Thanks: 10
Thanked 3 Times in 3 Posts
Exclamation 'max_user_connections' suddenly exceeded

Out of nowhere... Bam! 'max_user_connections' gets exceeded so that Pligg does not even connect to the database. When i leave the whole thing for a while everything goes back to normal and then the same thing happens again. I Used to run another pligg on this server no problem for over a year. Also my current Pligg used to get over 50.000 daily uniques for weeks and still cope with the traffic. Now when the traffic has actually dropped considerably the problems have started... As you can probably guess there are a lot of unhappy users faced with database connection error for half a day, every other day...

Any ideas guys? I tried changing $globals['mysql_persistent'] to false but nothing has happened.
Reply With Quote
  #2 (permalink)  
Old 05-01-2007, 03:39 AM
savant's Avatar
Constant Pligger
 
Join Date: Apr 2006
Location: UK
Posts: 1,218
Thanks: 64
Thanked 207 Times in 148 Posts
max_user_connections means the number of connections each mysql user has and usually it is set to a default number. you will need to ask your hoster to tweak the database settings.
__________________
Anatomy of the Pligg template Help needed
Reply With Quote
The Following User Says Thank You to savant For This Useful Post:
  #3 (permalink)  
Old 05-01-2007, 09:02 AM
Designer
 
Join Date: Jan 2006
Posts: 118
Thanks: 10
Thanked 3 Times in 3 Posts
Yea, i know what that means. But the host has not changed anything. I assume its something to do with Pligg. Thanks!
Reply With Quote
  #4 (permalink)  
Old 05-01-2007, 09:35 AM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,547
Thanks: 254
Thanked 649 Times in 513 Posts
Did you install/upgrade/change the Pligg code recently? It wouldn't make sense that it would be a problem with Pligg if it worked fine before and all the sudden started.
__________________
I accept donations for my time helping users like you on the forum and IRC.
Reply With Quote
The Following User Says Thank You to kbeeveer46 For This Useful Post:
  #5 (permalink)  
Old 05-01-2007, 11:25 AM
savant's Avatar
Constant Pligger
 
Join Date: Apr 2006
Location: UK
Posts: 1,218
Thanks: 64
Thanked 207 Times in 148 Posts
Quote:
Originally Posted by mightyb View Post
Yea, i know what that means. But the host has not changed anything. I assume its something to do with Pligg. Thanks!
Well the host will set it to a default amount. If your site is growing in traffic then those default settings might not be best suited.

Quote:
Out of nowhere... Bam! 'max_user_connections' gets exceeded so that Pligg does not even connect to the database.
If you haven't changed or updated anything, your host may need top be tweaked for the amopunt of users you're getting
__________________
Anatomy of the Pligg template Help needed
Reply With Quote
  #6 (permalink)  
Old 05-01-2007, 06:10 PM
Designer
 
Join Date: Jan 2006
Posts: 118
Thanks: 10
Thanked 3 Times in 3 Posts
My host has suspended my account because i kept on killing the database. This is the log:

33807 mightyb1_ localhost mightyb1_p 6 Query SELECT DISTINCT pv_user_id, pv_type, pv_page_id FROM pageviews GR
33433 mightyb1_ localhost mightyb1_p 191 Query SELECT DISTINCT pv_user_id, pv_type, pv_page_id FROM pageviews GR
33365 mightyb1_ localhost mightyb1_p 217 Query SELECT DISTINCT pv_user_id, pv_type, pv_page_id FROM pageviews GR
32875 mightyb1_ localhost mightyb1_p 404 Query SELECT DISTINCT pv_user_id, pv_type, pv_page_id FROM pageviews GR
31130 mightyb1_ localhost mightyb1_p 1045 Query SELECT DISTINCT pv_user_id, pv_type, pv_page_id FROM pageviews GR
30605 mightyb1_ localhost mightyb1_p 1234 Query SELECT DISTINCT pv_user_id, pv_type, pv_page_id FROM pageviews GR
30152 mightyb1_ localhost mightyb1_p 1437 Query SELECT DISTINCT pv_user_id, pv_type, pv_page_id FROM pageviews GR
30054 mightyb1_ localhost mightyb1_p 1475 Query SELECT DISTINCT pv_user_id, pv_type, pv_page_id FROM pageviews GR
30055 mightyb1_ localhost mightyb1_p 1475 Query SELECT DISTINCT pv_user_id, pv_type, pv_page_id FROM pageviews GR
29896 mightyb1_ localhost mightyb1_p 1538 Query SELECT DISTINCT pv_user_id, pv_type, pv_page_id FROM pageviews GR
29898 mightyb1_ localhost mightyb1_p 1538 Query SELECT DISTINCT pv_user_id, pv_type, pv_page_id FROM pageviews GR
29596 mightyb1_ localhost mightyb1_p 1642 Query SELECT DISTINCT pv_user_id, pv_type, pv_page_id FROM pageviews GR
28621 mightyb1_ localhost mightyb1_p 2016 Query SELECT DISTINCT pv_user_id, pv_type, pv_page_id FROM pageviews GR
28002 mightyb1_ localhost mightyb1_p 2202 Query SELECT DISTINCT pv_user_id, pv_type, pv_page_id FROM pageviews GR
27509 mightyb1_ localhost mightyb1_p 2400 Query SELECT DISTINCT pv_user_id, pv_type, pv_page_id FROM pageviews GR
26356 mightyb1_ localhost mightyb1_p 2860 Query SELECT DISTINCT pv_user_id, pv_type, pv_page_id FROM pageviews GR
25895 mightyb1_ localhost mightyb1_p 3055 Query SELECT DISTINCT pv_user_id, pv_type, pv_page_id FROM pageviews GR
25363 mightyb1_ localhost mightyb1_p 3262 Query SELECT DISTINCT pv_user_id, pv_type, pv_page_id FROM pageviews GR
24464 mightyb1_ localhost mightyb1_p 3682 Query SELECT DISTINCT pv_user_id, pv_type, pv_page_id FROM pageviews GR
23605 mightyb1_ localhost mightyb1_p 4052 Query SELECT DISTINCT pv_user_id, pv_type, pv_page_id FROM pageviews GR
23149 mightyb1_ localhost mightyb1_p 4268 Query SELECT DISTINCT pv_user_id, pv_type, pv_page_id FROM pageviews GR
21933 mightyb1_ localhost mightyb1_p 4932 Query SELECT DISTINCT pv_user_id, pv_type, pv_page_id FROM pageviews GR
21372 mightyb1_ localhost mightyb1_p 5239 Query SELECT DISTINCT pv_user_id, pv_type, pv_page_id FROM pageviews GR
20944 mightyb1_ localhost mightyb1_p 5396 Query SELECT DISTINCT pv_user_id, pv_type, pv_page_id FROM pageviews GR
19144 mightyb1_ localhost mightyb1_p 6145 Query SELECT DISTINCT pv_user_id, pv_type, pv_page_id FROM pageviews GR
18562 mightyb1_ localhost mightyb1_p 6373 Query SELECT DISTINCT pv_user_id, pv_type, pv_page_id FROM pageviews GR
18521 mightyb1_ localhost mightyb1_p 6410 Query SELECT DISTINCT pv_user_id, pv_type, pv_page_id FROM pageviews GR
18441 mightyb1_ localhost mightyb1_p 6470 Query SELECT DISTINCT pv_user_id, pv_type, pv_page_id FROM pageviews GR
18378 mightyb1_ localhost mightyb1_p 6507 Query SELECT DISTINCT pv_user_id, pv_type, pv_page_id FROM pageviews GR
18245 mightyb1_ localhost mightyb1_p 6565 Query SELECT DISTINCT pv_user_id, pv_type, pv_page_id FROM pageviews GR
18195 mightyb1_ localhost mightyb1_p 6602 Query SELECT DISTINCT pv_user_id, pv_type, pv_page_id FROM pageviews GR
18106 mightyb1_ localhost mightyb1_p 6661 Query SELECT DISTINCT pv_user_id, pv_type, pv_page_id FROM pageviews GR
18040 mightyb1_ localhost mightyb1_p 6697 Query SELECT DISTINCT pv_user_id, pv_type, pv_page_id FROM pageviews GR
17943 mightyb1_ localhost mightyb1_p 6756 Query SELECT DISTINCT pv_user_id, pv_type, pv_page_id FROM pageviews GR
17846 mightyb1_ localhost mightyb1_p 6811 Query SELECT DISTINCT pv_user_id, pv_type, pv_page_id FROM pageviews GR
17782 mightyb1_ localhost mightyb1_p 6852 Query SELECT DISTINCT pv_user_id, pv_type, pv_page_id FROM pageviews GR
17550 mightyb1_ localhost mightyb1_p 6972 Query SELECT DISTINCT pv_user_id, pv_type, pv_page_id FROM pageviews GR
17494 mightyb1_ localhost mightyb1_p 7009 Query SELECT DISTINCT pv_user_id, pv_type, pv_page_id FROM pageviews GR
15967 mightyb1_ localhost mightyb1_p 7817 Query SELECT DISTINCT pv_user_id, pv_type, pv_page_id FROM pageviews GR

Any ideas what this could be? Thanks a lot guys!
Reply With Quote
  #7 (permalink)  
Old 05-01-2007, 06:46 PM
Designer
 
Join Date: Jan 2006
Posts: 118
Thanks: 10
Thanked 3 Times in 3 Posts
I have managed to find the problem. Its the last 5 profile views that's been sucking all the resources.
Reply With Quote
  #8 (permalink)  
Old 05-01-2007, 06:49 PM
Casual Pligger
 
Join Date: Mar 2007
Posts: 48
Thanks: 0
Thanked 13 Times in 6 Posts
Could you explain further? I'd like to understand how this happened to avoid it.
Reply With Quote
  #9 (permalink)  
Old 06-03-2007, 02:11 AM
New Pligger
 
Join Date: Apr 2007
Posts: 7
Thanks: 0
Thanked 5 Times in 1 Post
trim some data from page_views table to solve this problem

the sql is too db intensive. What you have to do is to trimp of a whole bunch of the entries in page_view to solve the problem...

this is my only solution at this moment....
__________________
Vist me at TheLostHub.com - Daily LOST tv news

Blobees.com - Share your positivity - Law of Attraction
Reply With Quote
  #10 (permalink)  
Old 06-03-2007, 09:18 AM
wwwSENSERELYcom's Avatar
Casual Pligger
 
Join Date: May 2007
Location: Tianjin, China
Posts: 73
Thanks: 2
Thanked 2 Times in 1 Post
The best then would be to delete this query, the last 5 profile views are a detail anyway.
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
What happened to my site it suddenly getting error edpudol General Help 7 04-17-2008 03:34 PM
Registration suddenly broken chriswithpepper General Help 5 11-29-2007 05:57 PM
Big problem - site suddenly won't work with www. prefix pierrem General Help 0 02-24-2007 12:21 PM
Help - Fatal Error suddenly filtalr General Help 4 02-10-2007 04:52 AM
Index suddenly really slow when logged in iamcanadian General Help 4 01-25-2007 12:55 AM


Search Engine Friendly URLs by vBSEO 3.2.0