Raised This Month: $106 Target: $400
 26% 

Register System Lagging the server


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
D4rkSiD3Rs
Senior Member
Join Date: Jan 2018
Location: Morocco
Old 10-13-2018 , 11:26   Register System Lagging the server
Reply With Quote #1

Hello,

I'm using Register System V9.0 by m0skVi4a ;] on my server, and there are more than 3500 players registered on the server and the regusers.ini file size is 200kb.
The problem is when someone connect to the server, the plugin have to check in regusers.ini if the player is registered or not, then the server freezes for 3 or 5 seconds. And when the map changes the server stop functioning due to the large number of players connecting on the sametime.

So what do you suggest to avoid that lag coming from that plugin ?
__________________


Looking for an awesome and reliable game hosting ?
Try GeekGamers Hosting.

D4rkSiD3Rs is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: Brazil 🇧🇷
Old 10-13-2018 , 12:22   Re: Register System Lagging the server
Reply With Quote #2

In this case, switch to MySQL.
__________________
Working with $$$ paid plugins. Contact below (ONLY FOR NEGOTIATIONS)
  • Skype: crazy.770
  • Steam: crazy770
  • Discord: CrazY.#5317
Feel free to check my work at https://conceptstrike.blogspot.com

Check my Aliens vs. Predator: currently offline
CrazY. is offline
SkazzY
AlliedModders Donor
Join Date: Nov 2014
Location: Forbidden Forest
Old 10-13-2018 , 12:34   Re: Register System Lagging the server
Reply With Quote #3

If you have 3500 different active users registered, you should have the ability to use MySQL (have a forum, private server or something else that gives you access to MySQL).
SkazzY is offline
D4rkSiD3Rs
Senior Member
Join Date: Jan 2018
Location: Morocco
Old 10-13-2018 , 13:17   Re: Register System Lagging the server
Reply With Quote #4

I am looking for a solution other than MySQL
__________________


Looking for an awesome and reliable game hosting ?
Try GeekGamers Hosting.

D4rkSiD3Rs is offline
KliPPy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 10-13-2018 , 13:22   Re: Register System Lagging the server
Reply With Quote #5

Go with SQLite then.
__________________
KliPPy is offline
D4rkSiD3Rs
Senior Member
Join Date: Jan 2018
Location: Morocco
Old 10-13-2018 , 16:10   Re: Register System Lagging the server
Reply With Quote #6

Now I can't change the save method, if i changed it all registered users will be deleted.
__________________


Looking for an awesome and reliable game hosting ?
Try GeekGamers Hosting.

D4rkSiD3Rs is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: Brazil 🇧🇷
Old 10-13-2018 , 17:05   Re: Register System Lagging the server
Reply With Quote #7

You can do that without lose data, but will take time. Basically, load from ini and insert user reg in dabatase if not exists, if exists load from database. After a time, delete everything related to ini.

Or, delete everything and let your players create account again.
__________________
Working with $$$ paid plugins. Contact below (ONLY FOR NEGOTIATIONS)
  • Skype: crazy.770
  • Steam: crazy770
  • Discord: CrazY.#5317
Feel free to check my work at https://conceptstrike.blogspot.com

Check my Aliens vs. Predator: currently offline

Last edited by CrazY.; 10-13-2018 at 17:10.
CrazY. is offline
KliPPy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 10-13-2018 , 17:06   Re: Register System Lagging the server
Reply With Quote #8

I'm sure it's possible to convert from your current format to SQLite easily.
__________________
KliPPy is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: Brazil 🇧🇷
Old 10-13-2018 , 17:44   Re: Register System Lagging the server
Reply With Quote #9

Yes, @OP can also try to loop through the ini file and insert all data in mysql.
__________________
Working with $$$ paid plugins. Contact below (ONLY FOR NEGOTIATIONS)
  • Skype: crazy.770
  • Steam: crazy770
  • Discord: CrazY.#5317
Feel free to check my work at https://conceptstrike.blogspot.com

Check my Aliens vs. Predator: currently offline

Last edited by CrazY.; 10-13-2018 at 17:49.
CrazY. is offline
D4rkSiD3Rs
Senior Member
Join Date: Jan 2018
Location: Morocco
Old 10-13-2018 , 18:44   Re: Register System Lagging the server
Reply With Quote #10

Actually, I want to leave it like it is, It's easy for me when I want to change the password of someone's.
__________________


Looking for an awesome and reliable game hosting ?
Try GeekGamers Hosting.

D4rkSiD3Rs is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:19.


Powered by vBulletin®
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Theme made by Freecode