Raised This Month: $51 Target: $400
 12% 

[Fixed] MySQL: SuperHero mod not closing connections?


  
 
 
Thread Tools Display Modes
Author Message
FeliXen
Junior Member
Join Date: Jun 2005
Old 07-28-2005 , 11:06   [Fixed] MySQL: SuperHero mod not closing connections?
#1

I'm running AMX Mod X 1.01, Metamod X from Hullu and latest SuperHero mod on Linux Debian 2.4.18-686-smp. The MySQL server is 4.0.16 running on Windows 2003, web server edition (not hosted the same place as the SH server).

The server works fine, but when watching the graph of my MySQL server's connection usage it slowly grows up and reaches 100% connection usage, which means that my MySQL server is being put out of function for both the SH mod cs server and the rest of my applications relying on the server.

It seems to me like superhero mod isn't closing its connections, which results in this - but can this be true?
Can anyone see anything wrong with my setup, that could result in this?

I concider that it must be a bug of some kind, but please, any suggestions are welcome.
For now i have turned off SaveXP, untill i find a solution.

Thanks.
FeliXen is offline
123
Veteran Member
Join Date: Apr 2005
Location: Katy, TX
Old 07-28-2005 , 11:30  
#2

I would say that it prob. is your mysql server that does not have enough space avalible...
__________________
//ShadowLeader - 123
123 is offline
FeliXen
Junior Member
Join Date: Jun 2005
Old 07-28-2005 , 11:39  
#3

There's more than enough discspace, but do you mean the MySQL server setting max_connections? It's set to 100, which is the default value as far as i know.

My War3FT server has the same setup (same MySQL server, newer Debian kernel though), and it only uses 10-15% of the connections available.
FeliXen is offline
123
Veteran Member
Join Date: Apr 2005
Location: Katy, TX
Old 07-28-2005 , 11:43  
#4

No.. I mean, doesn't the mysql server get a max amount of diskspace ?
I have no problem, with it, and I have had 3 servers running on the same mysql server...
If you wan't me to host it for you, untill you get your own to work, then just contact me om msn.
__________________
//ShadowLeader - 123
123 is offline
FeliXen
Junior Member
Join Date: Jun 2005
Old 07-28-2005 , 11:53  
#5

Hi,

Thanks for the offer, that's very generous of you and highly appreciated. For now i would like to try getting it to work and i'll survive wiithout the savexp for a short while (or well, my users will hopefully ).
I host the MySQL db my self, so i have no limit configured on how much the database may take, and there's only like 30-40 players in the database right now (http://www.csweb.dk/?server/stats/sh/10/).

I have a few questions related to your setup if it's okay.
- Which version of MySQL do you run and on which OS?
- Have you got any servers that are hosted remotely, using your MySQL server?

Thanks again.
FeliXen is offline
123
Veteran Member
Join Date: Apr 2005
Location: Katy, TX
Old 07-28-2005 , 12:22  
#6

I don't controle my mysql server, I use mfhosting.
All the cs servers I have had connected, have been remote.
__________________
//ShadowLeader - 123
123 is offline
FeliXen
Junior Member
Join Date: Jun 2005
Old 07-28-2005 , 12:41  
#7

Alright, I'll try a few things and if it keeps bugging me then perhaps i'll take you up on your offer and see if it runs smoothly on your MySQL server, because then it must be my MySQL setup that's wrong.

Thank you very much for the help so far.
FeliXen is offline
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 07-28-2005 , 21:39  
#8

what is your "sh_mysql_persistent" setting?
try changing it.

Also if you check the code I am telling amx(x) to close the mysql connection

you never stated your SH version, and you should also use the stock metamod, there usually problems when not using the stock metamod.

I'm guessing you have persistant turned on, so then it doesn't close the connection and should reuse the orginal one, but for some reason it cant use the old connection (something with your setup perhaps?) so it makes a new one.
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
FeliXen
Junior Member
Join Date: Jun 2005
Old 07-29-2005 , 06:27  
#9

sh_mysql_persistent is set to 0 (off). 123 suggested that i tried changing sh_endroundsave to 0, and since i did that last night it hasn't overloaded my MySQL server.

As i said i'm using the latest version of superhero mod (stable, not from cvs). Metamod X has a lot of improvements compared to Metamod, which is why I'm using it. I tried with both versions, and both overloaded the MySQL server.

I have a War3FT server saving to the exact same database and from the same AMXX setup (except -superhero+war3ft) also on a Debian box, it works fine. But for now, i'm satisfied with the sh_endroundsave fix.

Thanks for the suggestions!
FeliXen is offline
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 07-29-2005 , 06:39  
#10

well if you look in my code I am closing every single connection that gets opened. SO I dont know what the prob could be.

Almost every other mysql thing I know of uses persistant connections. If your machine is local to the mysql server I would really try turning persistant connection ON and enround save ON

see if that fixes it, I would really like to know.
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
 



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

Forum Jump


All times are GMT -4. The time now is 05:09.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode