 |
 |
 |
 |
Registered: 10/19/08
Posts: 52
|
|
|
 |
 |
 |
 |
|
 |
 |
 |
 |
|
Express Hosting
"We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#229994 - 10/15/09 03:26 PM
Re: Max User Connections error
[Re: Rick]
|
member
|
Registered: 10/29/06
Posts: 189
Loc: Issaquah, WA
|
|
Wow.. I've been getting emails (hate mail :-) since this morning... ouch. At 9 am today it behaved good for a while. (Suspect they reset the server after my trouble ticket posting to them.) Then within an hour later with only 5 or 6 uses showing got this from my database guy: I'm getting errors now when I try to access the DBs: *Warning*: mysql_connect() [function.mysql-connect < http://vcca.org/members/admin/members/function.mysql-connect>]: Can't create a new thread (errno 12); if you are not out of available memory, you can consult the manual for a possible OS-dependent bug in *E:\inetpub\vhosts\vcca.org\httpdocs\members\Connections\mx_shop.php* on line *9* *Fatal error*: Can't create a new thread (errno 12); if you are not out of available memory, you can consult the manual for a possible OS-dependent bug in *E:\inetpub\vhosts\vcca.org\httpdocs\members\Connections\mx_shop.php* on line *9 *
_________________________
--BIll B
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#230007 - 10/15/09 07:58 PM
Re: Max User Connections error
[Re: Gizmo]
|
member
|
Registered: 10/29/06
Posts: 189
Loc: Issaquah, WA
|
|
Yep... got it... as luck has it, I was just able to log in and use the CP. Here is what I'm seeing: Beginning at 09:28 this morning this is the error message that filled my log file: Script: - Line: Unable to connect to the database! - Can't create a new thread (errno 12); if you are not out of available memory, you can consult the manual for a possible OS-dependent bug Then from 11:46 to 13:13 it was this: Script: - Line: Unable to connect to the database! - User vccachat already has more than 'max_user_connections' active connections Then from 13:14 to 13:43 it went back to this: Script: - Line: Unable to connect to the database! - Can't create a new thread (errno 12); if you are not out of available memory, you can consult the manual for a possible OS-dependent bug Then from 13:55 to 14:18 Script: - Line: Unable to connect to the database! - Lost connection to MySQL server at 'reading initial communication packet', system error: 0 ===================== Does this look like it could be caused by increaed users on the forum??? That's what the HOST is telling me... and of course, they want me to upgrade to a VPS for more $$$ per month.
_________________________
--BIll B
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#230421 - 10/29/09 04:00 PM
Re: Max User Connections error
[Re: ChevyGuy]
|
Post-a-holic
|
Registered: 06/04/06
Posts: 10164
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: 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
|
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#230476 - 10/30/09 03:20 PM
Re: Max User Connections error
[Re: Bill B]
|
member
|
Registered: 10/29/06
Posts: 189
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
|
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#230479 - 10/30/09 04:08 PM
Re: Max User Connections error
[Re: Bill B]
|
Post-a-holic
|
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
|
|
Ok, so what it looks like is connections waiting on your searches to finish, so they pile up behind that. You really don't have that much data, so it shouldn't be taking that long to search.
The odd thing is the search has been this way since 7.0, but you said you're just starting to see issues recently.
You might have answered this before, but are you on a shared server, virtual private, dedicated? You could probably see some improvements on this if MySQL was tuned properly.
I'd also suggest turning off searches for guest users if it isn't already. We will be making some major changes to the search for 8.0 to help, but from those screenshots, your searches are taking well over 10 minutes to complete, which isn't normal at all for the amount of data that you have.
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
|
|