ULX

Author Topic: ULiB freezing help  (Read 11131 times)

0 Members and 4 Guests are viewing this topic.

Offline DJReFor

  • Newbie
  • *
  • Posts: 11
  • Karma: 1
ULiB freezing help
« 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!

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: ULiB freezing help
« Reply #1 on: May 28, 2016, 01:20:54 PM »
How many users do you have in your users file?
Experiencing God's grace one day at a time.

Offline DJReFor

  • Newbie
  • *
  • Posts: 11
  • Karma: 1
Re: ULiB freezing help
« Reply #2 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)

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: ULiB freezing help
« Reply #3 on: May 29, 2016, 12:04:20 PM »
What do you mean "I'm getting the freezes of ULiB"? What's going on?
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: ULiB freezing help
« Reply #4 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.
Experiencing God's grace one day at a time.

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: ULiB freezing help
« Reply #5 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!
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline DJReFor

  • Newbie
  • *
  • Posts: 11
  • Karma: 1
Re: ULiB freezing help
« Reply #6 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!

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: ULiB freezing help
« Reply #7 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.

Offline DJReFor

  • Newbie
  • *
  • Posts: 11
  • Karma: 1
Re: ULiB freezing help
« Reply #8 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.

Offline davidk911

  • Newbie
  • *
  • Posts: 12
  • Karma: -4
Re: ULiB freezing help
« Reply #9 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

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: ULiB freezing help
« Reply #10 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.
Experiencing God's grace one day at a time.

Offline DJReFor

  • Newbie
  • *
  • Posts: 11
  • Karma: 1
Re: ULiB freezing help
« Reply #11 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

Small lag spike when someone else joins the server:
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

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

Big lag when someone is fully loaded:
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

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

Hope this is enough info to solve it

Offline roastchicken

  • Respected Community Member
  • Sr. Member
  • *****
  • Posts: 476
  • Karma: 84
  • I write code
Re: ULiB freezing help
« Reply #12 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.
Give a man some code and you help him for a day; teach a man to code and you help him for a lifetime.

Offline DJReFor

  • Newbie
  • *
  • Posts: 11
  • Karma: 1
Re: ULiB freezing help
« Reply #13 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.

Offline roastchicken

  • Respected Community Member
  • Sr. Member
  • *****
  • Posts: 476
  • Karma: 84
  • I write code
Re: ULiB freezing help
« Reply #14 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.
Give a man some code and you help him for a day; teach a man to code and you help him for a lifetime.