General > Off-Topic
Hook.lua
LoloMan2:
I already know the only way for detect whats hanging my server, (i know its a lua loop) its doing elimination process 1 by 1 of addons, but thats very very bad way for me because it will make my server unplayable, and hangs only happens if there are at least some players, because when i migrated of host, i keep the other IP on, and it had same files of actually server and it stop hang when 0 players. There isnt really another way for detect whats making an infinite loop? Because we are sure a hook doing it. Isnt possible made a code what can try detect if any file is doing infinite loop? I know too its an old addon what is doing it, and I deleted lot of old addons but hangs never stop. Thanks. Regards. Lolo.
iViscosity:
Are you sure it's an infinite loop or could it be bad code in a hook? For example, a Think hook could require a lot of data and since it's run every tick (higher tickrate = more ticks/second), that could be the cause of your issue. Deleting hook.lua will not prevent your issue if it is a problem with the hook, so the best bet is to, on a slow time or scheduled maintenance time, remove each add-on one by one and have a few of your staff or friends or something to come on. Once the server stops hanging, look through the most recent removed add-on's code to find a possible issue.
A general rule of thumb, a few hours of unplayability is better than constant server hanging making the game unplayable. I'm sure your players will understand.
Edit: Another way is looking through each of your add-ons one by one and examining each hook in them if you're positive it's a hook issue.
Another thing you could try is DBugR, but only use this if you have trusted players on. I'd disable cac! If you have it as DBugR is highly intrusive. This tool will hopefully point you in the right direction to find out the culprit of your server hanging.
Sent using Tapatalk. Owner of iViscosity Gaming.
LoloMan2:
I will try do every before elimination process, because it isnt really few hours unplayable, you have to wait about 12-18h for server hang. My tickrate is 33-40 I think, im not sure
BlueNova:
You said you get errors on hook.lua, could you paste the whole error?
iViscosity:
--- Quote from: LoloMan2 on March 20, 2018, 09:44:46 AM ---I will try do every before elimination process, because it isnt really few hours unplayable, you have to wait about 12-18h for server hang. My tickrate is 33-40 I think, im not sure
--- End quote ---
If the hangs take that long... Could you potentially schedule an automated server restart every, say, 10 hours? Or during slow times strewn in-between?
Sent using Tapatalk. Owner of iViscosity Gaming.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version