Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 06:49

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Help] Max Pooled Connections??? :S

Discussion on [Help] Max Pooled Connections??? :S within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
.Beatz's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 1,190
Received Thanks: 516
Unhappy [Help] Max Pooled Connections??? :S

Hey guys, I keep getting an error after about 15 minutes of my server being online...



When a character is saved it opens a new connection and then closes it after, it does this all the time it connects to MySql.

e.g
Connection Open - Read/Write - Connection Close

Have I done something seriously wrong? Or is it just my MySql being funny?

Many thanks to anyone who can help
.Beatz is offline  
Old 11/25/2010, 02:29   #2
 
elite*gold: 20
Join Date: Oct 2010
Posts: 451
Received Thanks: 259
Are you using AppServer? If you are, uninstall it and install MySQL 5.5. Then on set up, change the concurrent connections to 2000+. That's all I can think of. I've never seen this error before =[
FuriousFang is offline  
Old 11/25/2010, 08:30   #3
 
elite*gold: 0
Join Date: Nov 2010
Posts: 1,162
Received Thanks: 370
seems like ur mysql connection is really bad.
anyways fang appserv should not be the problem as is only 1 connection.
It have to be somewhere in his mysql code ><

I got no idea thought >.<
Syst3m_W1z4rd is offline  
Old 11/25/2010, 09:57   #4
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Not directly related to the question but you may wanna look into the sql wrapper made by impulse. It's DELICIOUS.

I forget all the technical details behind it but basically it kicks serious *** and makes methods far simpler to write.

I THINK it worked along the lines of establishing a single connection to sql which then handles all requests and inputs between the server and sql. That way you don't have to worry about opening/closing so many connections or any issues with threading as it's all handled through the same connection.
pro4never is offline  
Old 11/25/2010, 10:58   #5
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
Quote:
Originally Posted by pro4never View Post
Not directly related to the question but you may wanna look into the sql wrapper made by immune. It's DELICIOUS.

I forget all the technical details behind it but basically it kicks serious *** and makes methods far simpler to write.

I THINK it worked along the lines of establishing a single connection to sql which then handles all requests and inputs between the server and sql. That way you don't have to worry about opening/closing so many connections or any issues with threading as it's all handled through the same connection.
>.> immune's?
-impulse- is offline  
Old 11/25/2010, 12:53   #6
 
.Beatz's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 1,190
Received Thanks: 516
Thanks for the ideas guys I am probably gonna take pros idea and add immunes the Sql wrapper. If that doesnt work then I will try some other stuff.

Also with my appserv I know that is not the problem now because my Classic server is working fine with 60+ players.
.Beatz is offline  
Old 11/25/2010, 13:03   #7
 
elite*gold: 0
Join Date: Feb 2009
Posts: 262
Received Thanks: 161
Quote:
Originally Posted by .Beatz View Post
Thanks for the ideas guys I am probably gonna take pros idea and add immunes the Sql wrapper. If that doesnt work then I will try some other stuff.

Also with my appserv I know that is not the problem now because my Classic server is working fine with 60+ players.
i think this sql was made by -impulse-
no immune
teroareboss1 is offline  
Old 11/25/2010, 14:24   #8
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Quote:
Originally Posted by -impulse- View Post
>.> immune's?
****... so sorry, I always seem to mix up your names.. that + a while ago he was tving me a sql system he was working on.


But yes... your sql system is awesome, sorry for the mix up.
pro4never is offline  
Old 11/25/2010, 14:42   #9
 
|NeoX's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 237
Received Thanks: 99
I would also check the MySQL Settings (i like to use MySQL Administrator) Double check if you use too much threads for MySQL coz that could cause your CPU to process much more Threads than needed and the connections or read/write could be delayed and run outta time - TimeOut
|NeoX is offline  
Old 11/25/2010, 16:57   #10
 
.Beatz's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 1,190
Received Thanks: 516
I have figured out the problem (I hope)... Keep Alive Interval was set to 240 and now I have disabled it and no more errors so far.
.Beatz is offline  
Old 11/26/2010, 05:04   #11
 
bone-you's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 1,491
Received Thanks: 536
Quote:
Originally Posted by .Beatz View Post
When a character is saved it opens a new connection and then closes it after
Sounds like a terrible way to manage it all. Whoever thought of that... I have nothing to say. A better way would be to have your own persistent connection pool that you cycle through with each query.
bone-you is offline  
Old 11/26/2010, 10:39   #12
 
.Beatz's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 1,190
Received Thanks: 516
Quote:
Originally Posted by bone-you View Post
Sounds like a terrible way to manage it all. Whoever thought of that... I have nothing to say. A better way would be to have your own persistent connection pool that you cycle through with each query.
I know it is a bad way to manage it at the moment but I am changing everything around I just needed to figure out this problem before I started changing stuff around.
.Beatz is offline  
Old 11/26/2010, 11:48   #13
 
bone-you's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 1,491
Received Thanks: 536
Quote:
Originally Posted by .Beatz View Post
I know it is a bad way to manage it at the moment but I am changing everything around I just needed to figure out this problem before I started changing stuff around.
What I suggested would be the best method to do even though you could probably get away with doing just one connection and having a mysql queue.
bone-you is offline  
Old 11/26/2010, 12:02   #14
 
elite*gold: 0
Join Date: Apr 2010
Posts: 291
Received Thanks: 61
sockets crash ?
†he Knight is offline  
Old 11/26/2010, 22:48   #15
 
|NeoX's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 237
Received Thanks: 99
Quote:
Originally Posted by †he Knight View Post
sockets crash ?
please quit.
|NeoX is offline  
Thanks
2 Users
Reply


Similar Threads Similar Threads
Too many connections
08/08/2010 - Metin2 Private Server - 3 Replies
Hallo liebe Community, ich brauche eure Hilfe. Ich habe es nachdem hier gemacht: MySQL - Too many connections - Datenbanken - administrator Aber es ändert sich wieder zurück. Weiß bitte jemand eine andere Lösung, damit ich die max connections erhöhen kann. Ich hoffe irgend jemand kann mir helfen....
Server Connections
07/09/2010 - Ragnarok Online - 37 Replies
Aufgrund der ständigen Anfragen, ob man die richtigen server optionen hat wie z.B. master version etc, werde ich jetzt hier mal ein topic erstelle. In diesem topic werden nur die verbindungseinstellungen gespostet die nötig sind, sowie den link zum server selbst. wenn ihr neue verbindungen hier adden wollt, dann seid euch bitte sicher das diese richtig sind und das sie up to date sind. postet eure daten nur, wenn sie noch nicht hier im topic enthalten sind. ein beispiel: bitte...
wo finde ich die connections?
06/23/2010 - WarRock - 8 Replies
wo in warrock finde ch die connctions
Too many connections?
04/10/2010 - Metin2 Private Server - 5 Replies
HEy ich wollte wissen was ich da machen kann damit das mit den too many connections weg geht mfg danke
Silkroad C10 - more Connections!?
12/17/2008 - Silkroad Online - 3 Replies
It seems that joymax putted a security within the new update. because when 1 IP is connected and you try to login another it keeps saying C10 error. (tested with 2 pc's on same network) i did not used any loaders, cracks etc... Perhaps anyone else have the same prob or can give me a good explanation.



All times are GMT +1. The time now is 06:51.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.