Raised This Month: $32 Target: $400
 8% 

"MySQL server has gone away" occurring


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 11-21-2007 , 15:26   "MySQL server has gone away" occurring
Reply With Quote #1

In war3ft 3.0 MySQL sometimes throws the error "MySQL server has gone away". You can see more information in this thread: http://wc3mods.net/forums/viewtopic.php?t=3061

I'm really not sure what to do in order to fix this - when googling it it just says that the connection has timed out, which takes 8 hours... Which is a little confusing as I never had this problem in a previous version of war3ft which didn't use threading. Did threading introduce something new that I need to be aware of?

I was thinking maybe the connection isn't closed/re-opened on map change, so it times out after 8 hours or something? I have no idea. Any advice would be greatly appreciated. You can view the MySQL code here.

Thanks!
Josh
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
slmclarengt
Veteran Member
Join Date: Jul 2004
Location: The Cookie Jar... or Pul
Old 11-26-2007 , 20:49   Re: "MySQL server has gone away" occurring
Reply With Quote #2

Quote:
Originally Posted by Geesu View Post
In war3ft 3.0 MySQL sometimes throws the error "MySQL server has gone away". You can see more information in this thread: http://wc3mods.net/forums/viewtopic.php?t=3061

I'm really not sure what to do in order to fix this - when googling it it just says that the connection has timed out, which takes 8 hours... Which is a little confusing as I never had this problem in a previous version of war3ft which didn't use threading. Did threading introduce something new that I need to be aware of?

I was thinking maybe the connection isn't closed/re-opened on map change, so it times out after 8 hours or something? I have no idea. Any advice would be greatly appreciated. You can view the MySQL code here.

Thanks!
Josh
Would it be possible to check for when those type of errors occur and when they do, make it reconnect to the MySQL server reinitializing all of the data.

Note: I think there is probably a better way to solve this annoying problem.

Slmclarengt
__________________
But we don’t beat the Reaper by living longer. We beat the Reaper by living well. -Dr. Randy Pausch, R.I.P.

Come play WC3:FT on BnD Clan Server! You know you want to: Connect to WC3:FT BnD - go ahead click me!
slmclarengt is offline
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 12-05-2007 , 09:38   Re: "MySQL server has gone away" occurring
Reply With Quote #3

Yea that is what I was considering doing... but I hate that Seems like such a hack to fix some larger problem...

I'm wondering if too many queries are executed too fast? Would be interesting to see how many players on on when it happens.

Josh
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
slmclarengt
Veteran Member
Join Date: Jul 2004
Location: The Cookie Jar... or Pul
Old 12-05-2007 , 14:21   Re: "MySQL server has gone away" occurring
Reply With Quote #4

Quote:
Originally Posted by Geesu View Post
Yea that is what I was considering doing... but I hate that Seems like such a hack to fix some larger problem...

I'm wondering if too many queries are executed too fast? Would be interesting to see how many players on on when it happens.

Josh
Personally I think that's exactly what it is; there are probably way too many queries called within too short of a time period. Also, is there any way you could think of to speed up server changelevel time (hint: pruning feature for SQL ;-)) because I think a lot of lag issues in my server relate back to WC3FT retrieval/saving...

I asked my friend to write me an SQL script to prune my database and I am going to cron job it so it prunes my massive database.

Slmclarengt
__________________
But we don’t beat the Reaper by living longer. We beat the Reaper by living well. -Dr. Randy Pausch, R.I.P.

Come play WC3:FT on BnD Clan Server! You know you want to: Connect to WC3:FT BnD - go ahead click me!
slmclarengt is offline
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 12-11-2007 , 14:36   Re: "MySQL server has gone away" occurring
Reply With Quote #5

I'm working on the pruning issue right now.... I JUST added a new thread for help about it Can't figure it out
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
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

Forum Jump


All times are GMT -4. The time now is 08:19.


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