Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
2 registered (Gizmo, Stan), 35 Guests and 11 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 06/05/13
Posts: 1
Top Posters (30 Days)
Ruben 27
Gizmo 23
Bert 18
sb 5
hema0359 4
After the Rose 4
skicomau 3
gladiator 3
Iann128 2
matrixinfologic 2
Latest Photos
Uhm...
Mayan End of World
Gas Station Disco Video Shoot
Test Pictures
Audrey Kate
Page 3 of 4 < 1 2 3 4 >
Topic Options
#230419 - 10/29/09 02:44 PM Re: Max User Connections error [Re: Gizmo]
ChevyGuy Offline
stranger
Registered: 07/16/06
Posts: 5
Loc: Issaquah, WA
Two weeks have gone by and we still get max_connections and timeout errors. Only have 20 or 25 users at any one time. The host increased connections and file size (for cache). And reduced timeout settings.

Yesterday they restarted IIS to get up back.. but 20 minutes later we were bogged down again.

Are you sure that there isn't any issue with 7.5.4 not closing out processes? Sorry, I had to ask.
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#230420 - 10/29/09 03:00 PM Re: Max User Connections error [Re: ChevyGuy]
Ruben Offline

Registered: 12/20/03
Posts: 4959
Loc: Lutz,FL
Just a thought.
Did you happen to enable
"Use Persistent Connections"
in the ubb control panel?
_________________________
Blue Man Group


There is no such thing as stupid questions. Just stupid answers
Top
#230421 - 10/29/09 03:00 PM Re: Max User Connections error [Re: ChevyGuy]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10177
Loc: Aberdeen, WA
There are only 2 ways a connection won't get closed.

A. If you have persistent connections turned on (even then it will only have 1 connection per apache process)

B. If there is some other deeper issue going on with php or mysql.

When a PHP script finishes, everything closes along with it. There is nothing you actually need to do to actually close the connection.

What you probably should do is once it's been running for awhile, go into your control panel and then run the following SQL command:

Sql Query:
show processlist


That will show you any processes (connections) that are currently open. That should give you an idea if there are lingering connections hanging around.

You should definitely run that query when you're getting the max_connections error and let us know what you find.
Top
#230423 - 10/29/09 04:05 PM Re: Max User Connections error [Re: Rick]
Ruben Offline

Registered: 12/20/03
Posts: 4959
Loc: Lutz,FL
Well I am not sure how IIS deals with persistent connections.
Since the only value in IIS I can reference is concurrent connections.
_________________________
Blue Man Group


There is no such thing as stupid questions. Just stupid answers
Top
#230434 - 10/29/09 07:47 PM Re: Max User Connections error [Re: Ruben]
Bill B Offline

enthusiast
Registered: 10/29/06
Posts: 250
Loc: Issaquah, WA
Ruben -- thanks. I did NOT have persistent_connections turned on. So I just did that.. We'll watch to see what happens.

Rick -- Thanks too. I'll try out the "show processlist" query.
_________________________
--BIll B
Top
#230453 - 10/30/09 12:03 PM Re: Max User Connections error [Re: Bill B]
Ruben Offline

Registered: 12/20/03
Posts: 4959
Loc: Lutz,FL
Originally Posted By: Bill B
Ruben -- thanks. I did NOT have persistent_connections turned on. So I just did that.. We'll watch to see what happens.

Rick -- Thanks too. I'll try out the "show processlist" query.

Well I meant it could be causing the problem! Oh Well.
_________________________
Blue Man Group


There is no such thing as stupid questions. Just stupid answers
Top
#230474 - 10/30/09 02:00 PM Re: Max User Connections error [Re: Ruben]
Bill B Offline

enthusiast
Registered: 10/29/06
Posts: 250
Loc: Issaquah, WA
Performance has been better since I turned on "persistent connections"... but I noticed about 25 error messages from an hour ago when the MySQL calls failed due to "maximum_connections" error.

I just went in and saw these three processes running. The first one looks odd to me -- with the comment about copying to a "temp table". Is that unusual? What do you think?

- - - - -SQL LOG - - - - - - - - - - - - - - -
35266 vccachat localhost:4598 vccachat_org_-_chat Query 39 Copying to tmp table SELECT p.POST_ID FROM ubbt_POSTS p LEFT JOIN ubbt_POSTS pp on p.POST_ID=pp.POST_ID, ubbt_TOP

35289 vccachat localhost:4636 vccachat_org_-_chat Query 0 show processlist

35291 vccachat localhost:4638 vccachat_org_-_chat Query 0 Sending data select t1.TOPIC_ID,t1.POST_ID,t2.USER_DISPLAY_NAME,t1.TOPIC_CREATED_TIME,t1.TOPIC_LAST_REPLY_TIME,t
------------------------------------------------------------
_________________________
--BIll B
Top
#230475 - 10/30/09 02:15 PM Re: Max User Connections error [Re: Bill B]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10177
Loc: Aberdeen, WA
That' query is coming from your search. If the result set is larger than your mysql configuration allows then it will have to create a temp table for sorting. I'd check what your maximum search results and search range is set to in the control panel.
Top
#230476 - 10/30/09 02:20 PM Re: Max User Connections error [Re: Bill B]
Bill B Offline

enthusiast
Registered: 10/29/06
Posts: 250
Loc: Issaquah, WA
Okay, I'm starting to see something here.

There are only 4 or 5 people logged into my forum right now.
I saw the three processes as noted in the previous posting. Then 3 or 4 minutes later I went back in --- and there were 30 processes running. See Picture1 , Picture2 and Picture3 .

As soon as I copied them to a file (approx 1 mintue later) I looked and only had the processes in Picture4 running.
_________________________
--BIll B
Top
#230477 - 10/30/09 02:37 PM Re: Max User Connections error [Re: Bill B]
Bill B Offline

enthusiast
Registered: 10/29/06
Posts: 250
Loc: Issaquah, WA
I had Search set to 6 years, 3 characters, 100 results.
I changed it to 5 years, 3 characters, 50 results.

My database is:

Totals=
ROWS: 380591, DATA: 153.1 MB, INDEXES: 68.55 MB
_________________________
--BIll B
Top
Page 3 of 4 < 1 2 3 4 >



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Marking a topic as 'read' manually
by sw55
Yesterday at 04:29 PM
How to add AD island?
by Conrad
Yesterday at 01:19 PM
Need to update from 6 to latest: can't until server checked
by Digilady
06/17/13 08:17 AM
Shout Box
by Bert
06/15/13 04:15 PM
Calendar
by Bert
06/15/13 04:11 PM
Forum Stats
11000 Members
36 Forums
33988 Topics
183528 Posts

Max Online: 978 @ 06/24/07 10:19 PM
Random Image