Author Topic: ULX lags when connecting/disconnecting  (Read 2100 times)

0 Members and 3 Guests are viewing this topic.

Offline danhaynes9

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
ULX lags when connecting/disconnecting
« on: November 22, 2016, 04:42:04 PM »
This sub-forum is only for help or discussion regarding projects created by Team Ulysses. If you are requesting help, please search the forums FIRST to make sure your question has not already been answered. If you still need help, fill in the following information.

My ULib/ULX versions (run "ulx version" in console):
ULib Most recent
ULX Most recent

Game mode(s) I am having this problem on: darkrp

Lua errors shown in console, if any:
Code: [Select]
<insert errors here>

So basically whenever I get around 70+ players on my server the server lags a lot when people connect/disconnect. I downgrade to another version of ulx/ulib and it fixes the problem. It lags when even a couple people are on but it is really noticeable with over 50 players. I am also using the MySQL ucl.lua if that helps. Thanks!

Offline Professor_Smiley

  • Newbie
  • *
  • Posts: 45
  • Karma: -24
Re: ULX lags when connecting/disconnecting
« Reply #1 on: November 23, 2016, 08:03:35 AM »
Could be your server specs

Offline Bytewave

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 718
  • Karma: 116
  • :)
    • My Homepage
Re: ULX lags when connecting/disconnecting
« Reply #2 on: November 23, 2016, 09:53:42 AM »
Do you happen to have any autopromote-like addons? Having a users database over a certain size causes a lot of lag on player connect/disconnect, IIRC, so you should probably avoid autopromote addons.
bw81@ulysses-forums ~ % whoami
Homepage

Offline danhaynes9

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: ULX lags when connecting/disconnecting
« Reply #3 on: November 23, 2016, 12:26:54 PM »
No I do not use autopromote for that reason. I ensure you it is not the server specs because I run off a very good dedi.

Offline Bytewave

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 718
  • Karma: 116
  • :)
    • My Homepage
Re: ULX lags when connecting/disconnecting
« Reply #4 on: November 23, 2016, 12:48:10 PM »
No I do not use autopromote for that reason. I ensure you it is not the server specs because I run off a very good dedi.
I would still check the size of your users.txt and groups.txt files, just to make sure they're not abnormally huge.
Also, define "very good dedi[cated server]," because (iirc) Garry's Mod's multicore support is lackluster if existent.

There could also be some laggy operations running on PlayerConnect or PlayerInitialSpawn, etc. You might want to look into your addons and see what's hooking to those. Though that wouldn't explain lag with only a high amount of players.
« Last Edit: November 23, 2016, 12:49:56 PM by Bytewave »
bw81@ulysses-forums ~ % whoami
Homepage

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX lags when connecting/disconnecting
« Reply #5 on: November 23, 2016, 02:50:34 PM »
How many users in users.txt?
And have you tried without SQL connections running.
I've no idea about your current SQL implimentation, but remember previous SQL=>lua libraries could not continue until the connection was made, info loaded, and parsed, before the next script code would function.
That was over 4 years ago though.
I've no idea if current SQL scripts will run concurrently.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming