Posts: 520
Threads: 146
Joined: Jan 2008
Reputation:
0
Hey guys,
I just found an issue with my mysql server, and some how when your connecting to the server you seems to lost the connection after a while when it's saying "joining server."
and suddenly the server restarts, it's like you have to high ping and the server automaticly restarts.
Any idйas why?
Posts: 1,426
Threads: 56
Joined: Dec 2010
Reputation:
0
We can't read your mind. Drop your code here.
Posts: 673
Threads: 45
Joined: May 2010
Reputation:
0
which mysql plugin did you use ?
Posts: 29
Threads: 6
Joined: Sep 2011
Reputation:
0
I had a problem simular to this aswell. My sever was to overloaded running with a high ammount of RAM and taking alot of CPU.. I think it was around 40% on a i7 Processor Computer which was really bad. So I sorted out a few files. Deleted some filterscripts that went in use and walla' it went down to 2%. But I advise cleaning your folder. Removing any unwanted items out of it and keeping it that way. I also advise not to use so much mapped objects with a streamer. Streamers take up aload of CPU and that's why I also had to create a new map with only cars and icons on it to work fully functionaly.
If you are using G-Stylezzz's mysql plugin, yes, you will lose connection after a while. What you can do is, make a timer checking if mysql_ping == -1 and if so, use mysql_reconnect. ( Not sure if it happens on other plugins since I've only used G-Stylezzz's )
You don't actually need a 3 second timer, it disconnects after a while running. So I say you use a ~15 min timer.