Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: DJReFor on May 28, 2016, 12:56:15 PM

Title: ULiB freezing help
Post by: DJReFor on May 28, 2016, 12:56:15 PM
I'm running the latest version of ULiB and I'm getting the freezes of ULiB when people connect. I've been searching for a solution to get it working with MySQL, but since all of them don't work anymore and my Lua skills aren't that good I will need to solve it in a different way.

So my question is, how do I solve it? I have around 15 different groups, should I remove some of them and what is a safe number to go for?
I also read about delaying auto promote in addons, but I didn't really understood what was meant by this. Could someone explain me how I should delay this.
If you have another solution I would like to hear it too.

Thanks for all your help!
Title: Re: ULiB freezing help
Post by: Megiddo on May 28, 2016, 01:20:54 PM
How many users do you have in your users file?
Title: Re: ULiB freezing help
Post by: DJReFor on May 28, 2016, 01:39:50 PM
How many users do you have in your users file?
There is currently 1 user in there which is me.
(I'm using DarkRP with FAdmin though)
Title: Re: ULiB freezing help
Post by: iViscosity on May 29, 2016, 12:04:20 PM
What do you mean "I'm getting the freezes of ULiB"? What's going on?
Title: Re: ULiB freezing help
Post by: Megiddo on May 29, 2016, 01:18:33 PM
15 groups and 1 user should definitely not be an issue. Please run "ulx debuginfo" at your server console and post the results here.
Title: Re: ULiB freezing help
Post by: iViscosity on May 29, 2016, 05:42:05 PM
I don't know, but this might help? http://forums.ulyssesmod.net/index.php?topic=3350.0

I did a quick google search and found it, I'm not quite sure I understand the issue but I hope you can fix it!
Title: Re: ULiB freezing help
Post by: DJReFor on June 01, 2016, 10:08:23 AM
I'm sorry for the late response, I didn't have time to go on my computer.
I ran the command as you told me and I attached the output file to this reply.
Hope to hear from you soon.

Thanks!
Title: Re: ULiB freezing help
Post by: MrPresident on June 01, 2016, 02:37:37 PM
You're running a LOT of addons.

My suggestion, and it's really something you need to do before we can move forward is to:

1. Remove ALL of your addons except ULX/ULib (including Workshop addons).
2. Restart your server
3. See if you still get the lag.


My money is on another addon causing your join lag spikes.

If you run your server with only ULX/ULib and don't get any lag, then we can rule out that ULX is the problem.

At that point, you'll need to start adding back in your addons a few at a time until you notice the lag starting up again. Then you can narrow down which one might be causing it.

It's a lot of work.. but it's the only way you can track down this lag and get rid of it.
Title: Re: ULiB freezing help
Post by: DJReFor on June 02, 2016, 01:10:42 PM
You're running a LOT of addons.

My suggestion, and it's really something you need to do before we can move forward is to:

1. Remove ALL of your addons except ULX/ULib (including Workshop addons).
2. Restart your server
3. See if you still get the lag.


My money is on another addon causing your join lag spikes.

If you run your server with only ULX/ULib and don't get any lag, then we can rule out that ULX is the problem.

At that point, you'll need to start adding back in your addons a few at a time until you notice the lag starting up again. Then you can narrow down which one might be causing it.

It's a lot of work.. but it's the only way you can track down this lag and get rid of it.

I only have ULiB and ULX installed but I still get lag spikes, they are smaller though. And without ULX and ULiB (even with all addons) there is no lag spike occuring.
It's really weird for me what's going on, it's definetly not the server.
Title: Re: ULiB freezing help
Post by: davidk911 on June 02, 2016, 01:42:33 PM
I am also having the same issue as DJ on the player connectins/spawn/respawns there is a tickrate drop for like 0.1-0.3 seconds
Title: Re: ULiB freezing help
Post by: Megiddo on June 02, 2016, 03:08:35 PM
Can you run 'net_graph 4' in your client console and share screenshots of the lag spikes with us? One with no addons, one with ULX/ULib ONLY, and another with all your addons.
Title: Re: ULiB freezing help
Post by: DJReFor on June 03, 2016, 01:35:43 PM
Can you run 'net_graph 4' in your client console and share screenshots of the lag spikes with us? One with no addons, one with ULX/ULib ONLY, and another with all your addons.
So I ran the net_graph on a couple of cases and made a screen when I joined and when someone else joined.

First situation
Only ULX, ULiB, Map and DarkRP

Small lag spike when I join the server:
http://i.imgur.com/ntl8Q6e.jpg (http://i.imgur.com/ntl8Q6e.jpg)

Small lag spike when someone else joins the server:
http://i.imgur.com/YqZOQyY.jpg (http://i.imgur.com/YqZOQyY.jpg)

Second Situation
All addons enabled including ULX and ULiB

Big lag when I join the server:
http://i.imgur.com/BO2yeqJ.jpg (http://i.imgur.com/BO2yeqJ.jpg)

Big lag when someone spawns in:
http://i.imgur.com/gf6DX7P.jpg (http://i.imgur.com/gf6DX7P.jpg)

Big lag when someone is fully loaded:
http://i.imgur.com/mKt3RFR.jpg (http://i.imgur.com/mKt3RFR.jpg)

Third Situation
All addons without ULX and ULiB

No noticable lag when I spawn in (only the normal freeze with a lot of addons):
http://i.imgur.com/FsX3Fcv.jpg (http://i.imgur.com/FsX3Fcv.jpg)

No noticable lag when someone joins in/loads in:
http://i.imgur.com/uCTTJ2A.jpg (http://i.imgur.com/uCTTJ2A.jpg)

Hope this is enough info to solve it
Title: Re: ULiB freezing help
Post by: roastchicken on June 03, 2016, 11:15:31 PM
Can you run 'net_graph 4' in your client console and share screenshots of the lag spikes with us? One with no addons, one with ULX/ULib ONLY, and another with all your addons.

You missed one.
Title: Re: ULiB freezing help
Post by: DJReFor on June 04, 2016, 05:07:28 AM
You missed one.
I didn't include it because when I remove ULX and ULIB but keep all the addons, the freeze disappears. So I could remove everything and do a net graph on that, but it would give the same result as the third situation.
If I'm wrong, then please tell me. I'll upload a screenshot of that case then.
Title: Re: ULiB freezing help
Post by: roastchicken on June 04, 2016, 12:41:31 PM
There is a lag spike when you join with all your addons but without ULX/ULib. How do you know that will persist if you remove all the addons? If your server lags without any addons, it shows that the problem is that your server is not powerful enough to run Garry's Mod without hiccups.

Please do remove all addons (if possible do a fresh install of Garry's Mod) and see what net graph gives you.
Title: Re: ULiB freezing help
Post by: DJReFor on June 04, 2016, 02:06:04 PM
There is a lag spike when you join with all your addons but without ULX/ULib. How do you know that will persist if you remove all the addons? If your server lags without any addons, it shows that the problem is that your server is not powerful enough to run Garry's Mod without hiccups.

Please do remove all addons (if possible do a fresh install of Garry's Mod) and see what net graph gives you.

I already reinstalled gmod server and tried it without any addons. Just the usual player join lag spike showed up, this lag spike isn't noticeable by playing. I guess a Xeon E3-1245 V2, 16 GB of ECC RAM and 2x3 TB Enterprise 7200 rpm is enough to run a gmod server. This cpu runs around 3.7 GHZ single core stable in boost.
But if you don't believe me I will post one with no addons. And as I said before, when I disable ULX and ULIB, then keep my big collection of addons activated the server runs completely fine.
Title: Re: ULiB freezing help
Post by: MrPresident on June 04, 2016, 03:45:39 PM
We're not saying that ULX/ULib aren't appearing to be the culprit, but there may be a conflicting addon. When you removed all your addons, did you also unsubscribe from workshop addons as well?
Title: Re: ULiB freezing help
Post by: DJReFor on June 05, 2016, 02:15:34 AM
We're not saying that ULX/ULib aren't appearing to be the culprit, but there may be a conflicting addon. When you removed all your addons, did you also unsubscribe from workshop addons as well?

Yes I deleted them from the addons folder and removed the startup parameters for workshop addons.
Title: Re: ULiB freezing help
Post by: davidk911 on June 07, 2016, 02:26:32 PM
Dunno if i can help troubleshooting here, but I'm also having this problem its not the end of the world but it does happen, today i moved host provider and when reinstalling i found with all my addons installed workshop and scriptfodder that it ran fine with ulib and ulx, however when I added my data files for players data for the addons and gmod directory itself including ulx and ulibs data files, the issue reappeared, it seems to do this when a player is loading in, respawn or is assigned a rank, maybe there is an issue where when a text file gets x amount of lines it becomes hardwork for ulib/ulx to search through the records to get x information in x location. i could be talking completely out my ass here, any chance of a mysql module in the future?
Title: Re: ULiB freezing help
Post by: JamminR on June 07, 2016, 07:33:04 PM
David, your issue has been discussed in other threads, and was ruled out in early questions of this one.
Thank you for your attempted contribution, but it has no bearing on this current troubleshooting topic.
Title: Re: ULiB freezing help
Post by: davidk911 on June 08, 2016, 03:33:01 AM
Which threads might i ask i havnt been able to find any D:
Title: Re: ULiB freezing help
Post by: JamminR on June 08, 2016, 06:09:09 PM
Which threads might i ask i havnt been able to find any D:
Many of these using "large (https://forums.ulyssesmod.net/index.php?action=search2;params=eJwtzDEOgCAQRNG72NjKiQgsE9GsYBbUmHB4F0P35xXjwu0SIbS5LW1qXnoZo1lifizl42RUKHa6_A6qNid-h2SpWgLG_zPIhk2UAwp1gROKutnJig_9jy0D)" as search. Not all, but likely many.

DJReFor, back on topic - I apologize, I really do not know what is causing your issue.
It's not standard. As for your server specs, you're on a hosted server, correct? Though the host may have provided you with the host server's main specs, the amount of resources the host is sharing with you among other servers could still be a factor. Again, not saying with 100% certainty, but, it's possible that, yes, it may not be enough, even though the host server has great specs.
Title: Re: ULiB freezing help
Post by: DJReFor on June 08, 2016, 06:18:01 PM
Many of these using "large (https://forums.ulyssesmod.net/index.php?action=search2;params=eJwtzDEOgCAQRNG72NjKiQgsE9GsYBbUmHB4F0P35xXjwu0SIbS5LW1qXnoZo1lifizl42RUKHa6_A6qNid-h2SpWgLG_zPIhk2UAwp1gROKutnJig_9jy0D)" as search. Not all, but likely many.

DJReFor, back on topic - I apologize, I really do not know what is causing your issue.
It's not standard. As for your server specs, you're on a hosted server, correct? Though the host may have provided you with the host server's main specs, the amount of resources the host is sharing with you among other servers could still be a factor. Again, not saying with 100% certainty, but, it's possible that, yes, it may not be enough, even though the host server has great specs.

No it's not a VPS, it's a Dedicated Server so I have complete resources.
And about David, he has the exact same problem as me. I know that because I talked to him before about this problem.
Title: Re: ULiB freezing help
Post by: JamminR on June 08, 2016, 06:28:33 PM
he has the exact same problem as me. I know that because I talked to him before about this problem.
No, he does not.
You state anytime you add ULib/ULX, no matter whether other addons are added or not, no matter whether you run with a clean groups/users.txt files, or not, you experience lag.

David on the other hand indicates all runs fine, UNTIL he adds back his user data.
We asked you about this in first few posts, as it's been a common notice - large user files cause some lag, often caused by (too low a setting) in autopromote scripts.
and when reinstalling i found with all my addons installed workshop and scriptfodder that it ran fine with ulib and ulx, however when I added my data files for players data for the addons and gmod directory itself including ulx and ulibs data files, the issue reappeared,

Unfortunately, we've not been able to determine your issue.
Title: Re: ULiB freezing help
Post by: DJReFor on June 09, 2016, 02:59:02 AM
I just tried something new out what sounded ridiculous to me but it helped a lot. I only renamed the ulx and ULIB folder, and this reduced the freeze a lot. It's now about 0.5 to 1 second with all my addons which normally was around 3 to 5 seconds.
Title: Re: ULiB freezing help
Post by: roastchicken on June 10, 2016, 12:00:35 AM
Which ULX and ULib folders did you rename?

garrysmod/addons/ulx or garrysmod/data/ulx?
Title: Re: ULiB freezing help
Post by: DJReFor on June 10, 2016, 05:36:19 AM
Which ULX and ULib folders did you rename?

garrysmod/addons/ulx or garrysmod/data/ulx?
Ah forgot to mention that. I only renamed the addons folder and NOT the data folder.
Title: Re: ULiB freezing help
Post by: Bytewave on June 10, 2016, 12:00:44 PM
Ah forgot to mention that. I only renamed the addons folder and NOT the data folder.
wat

You changed practically nothing about your actual environment, yet saw a great improvement? That's... strange. Have you tested more extensively to confirm that wasn't a by-chance thing? Say, have relatively the same conditions as before the "fix", with only the folder names changed?
Title: Re: ULiB freezing help
Post by: JamminR on June 10, 2016, 08:56:49 PM
I'm totally throwing dirt at a wall and seeing what will stick, but my conspiracy theory mind still thinks some badly written, or, possibly, even purposely nefarious addon goes looking for /addons/ulib (and more likely, ulx), and starts trying to do bad things, that end up slowing it down.
That's the only legitimate reason I can think of that renaming our addons folders would 'help'.
Title: Re: ULiB freezing help
Post by: Megiddo on June 12, 2016, 11:48:01 AM
Unfortunately, I'm at a complete loss as to what the issue here is. I don't see any recent GMod changes that would cause this, and no other users seem to be experiencing the problem you are. Sorry we aren't able to assist you further in this matter.
Title: Re: ULiB freezing help
Post by: Mr. Sid on August 20, 2017, 12:20:37 PM
I realize this is an old thread, but we have an identical problem. It's definitely the users.txt and bans.txt files. They need to be written more efficiently rather than an entire re-write. I'm a new Developer for one of top ten TTT servers on Gmod.

Please realize this is a problem and help the growing number of users with it.
Title: Re: ULiB freezing help
Post by: MrPresident on August 20, 2017, 12:23:30 PM
This is a limitation of the gmod file writing system.

We are aware of the issue and are working on a more efficient system in ULX4.

Until then, either use one of the many ULib MySQL implementations out there, or don't assign user groups to every single person joining your server.
Title: Re: ULiB freezing help
Post by: Mr. Sid on August 20, 2017, 12:49:10 PM
Thanks for the response, MrPresident. (And sorry for raising the dead!)
Title: Re: ULiB freezing help
Post by: MrPresident on August 20, 2017, 01:02:44 PM
No worries, this issue has been haunting us for a while.

ULib was never intended to be used the way server owners use it, which is why we figured that a flat text file would work fine. If you only use ULX to store admins/moderators and some special groups it works great!

Server owners these days use auto promotion mods to assign groups to literally everyone that joins. Or gamemods like RP do that too. This will add up.

The new ULX4 will utilize SQLite I believe which will be a much more efficient way to store and retrieve player info for way more players.