Ulysses
Ulysses Stuff => General Chat & Help and Support => Topic started by: Willdy on August 30, 2011, 10:04:13 AM
-
Well, when people join my TTT server, theres mass lag. Lag also happens when people are added/removed from groups.
Any one know why?
We use the latest ulx and ulib. (SVN)
-
Does this happen with other gamemodes as well? Or only when you are running TTT.
-
Uhm, not sure. We havn't tried it with other gamemodes.
Watch this spot. (gimme a few minutes, ill run a test server)
EDIT: Having other problems now, will conclude testing later :/
-
Just curious, how many users do you have in your users.txt file?
-
Uhm.. its 20840 lines
-
Good call Stickly Man, this seems like a plausible cause. Willdy, can you email Stickly and me your users.txt file (emails are in forum profiles)? If your lag is caused by the large file we'll look into optimizing the reading of that file.
Out of curiosity, why is your file so large?
-
We use auto promote, so theres a lot of ranks :P
-
I had the same problem when using my sql authentication script I posted. It would add the users to the users.text file even if they were just guests. I fixed it, but never updated it here. Dunno if that is his problem, but it could be..
-
What if you did user authentication by having a flatfile per user instead of one file with everyone in it? This might be better on resources with larger scale.
-
Ive sent the users.txt to all 3 of you, enjoy it! :P
If you want to talk on steam, you can.
http://steamcommunity.com/id/willdy
-
Unfortunately at this time I'm training in the field and am using my phone to read/post the forums. Ill be home this weekend though.
Not that id really be much help. 8) 8) 8)
-
Im sure your very helpful :P
-
Yah, I've come across this problem with the author of APromote, his server was set up to automatically promote anyone on his server whose been connected for (an hour?), so there were quite a few users -- from what I can tell, ULX and XGUI are not fully optimized for large users lists.
-
When the server is empty, ill modify the auto promote and will remake the users.txt file.
-
I'm pretty sure there are things we can do to optimize it, I'm discussing with megiddo about it. Do you make extensive use of your "user" group? (ie, the group players are in when they first join your server?) If you immediately or after a short while stick them into a specific group, then you'll get a whole load of users that only play on your server once building up in your users.txt
EDIT: Okay, Megiddo confirmed to me that he doesn't actually send that users table to anyone, it's all handled through XGUI. Which means I have some optimizing I need to do lol. I vaguely remember doing some major optimizations for this very reason a while back, but.. apparently I haven't finished? (It's been a while lol)
I'll look into it as soon as I get home to let you know of the status. When I can actually find the time to make the optimizations is beyond me :-\
-
Our lowest rank is at 1 hour. I intend to change this to 5 hours, remake all our groups and clear the users.txt. Adding back Moderators and Admins manually then the auto promote can do the rest.
EDIT: Did this, it went good and is now fixed :)
-
I took a look into the lag issues using your users.txt file, and it turns out that I had already implemented most of the optimizations I was talking about, and I wasn't really getting any major horrible lag with it :-\
EDIT: Oh wow, there we go. Yah, that's different lag than I thought it was lol. It looks like it's only triggered when you have the "regular" group (or which ever group has a crap ton of users) selected in the groups tab when someone joins, so you can test it on your server to see if it still happens. I'll start looking into a fix
EDIT2: Wow, that really is horrible, nearly crashed my gmod when forcing an update of the whole users table lol
EDIT3: Okay, I made a bunch of optimizations on this, will be pushing to SVN in a few minutes. It should help out anyone who has this problem in the future!
-
All, though we may have optimized our system, I'd still not recommend promoting hundreds of users just because they spent an hour (or two) on your server. You'll often get too many one time wonders.
5 hours sounds like a decent time.
Me, I'd probably even go a bit higher, but, I'm pretty conservative.
-
Agreed, there's at least one other thing that I saw in XGUI that didn't work due to having that many users (mostly due to derma limitations-- I'd have to come up with a workaround).
And scratch that "in a few minutes" promise.. having some troubles with commiting to SVN, I'll try to have the update up some time by tomorrow.
EDIT: Okay, now the changes are live!