Hard lags after 1-2 Hours

McRustReloaded

Retired Staff
Retired Staff
Member
Mar 20, 2016
140
17
18
46
Parts Unknown
Hey Boss !

I am the Owner of StayAlive Reloaded and i have some lag probs.
The server lags hard after 1-2 hours and i need to restart.
Ping of server and also from players are normal (between 30-80ms)

Here are my plugins which i use:
AdvancedTester - Latest
EAC - Latest
Wiper - Latest (Only for wipe stuff manual, no decay or day decay,no auto remove)
RemoveAll - Same as Wiper
GeoIP - LatestCountryBlackList (to block Turkey)
RestrictionZones - Latest (Only Zone is SmallRad to prevent from building too close)
KitManager
AdminChat
AdminPlus
Airdrops
AntiAdvert
AuthAllow
BannedPeople
Clans
DeathMSG
DestroySystem
DonatorRank
DonatorFlush
FPSBoost
GatherPlus
HomeSystem
InvLookup
SystemName
TimeVoter

Console shows NO Errors or spamming anything.
Plugins are always the latest.

My Server specs:
2x Intel Xeon E5-2670 8-Core 2.6 GHz (20 MB Cache, 8.00 GT/s, Intel-VT)
256 GB Ram
2x 1000 GB SAS Hot Swap 3.5" HardDrives, 7.200 rpm
2x 256 GB SSD Hot Swap
Case: 19" Rack
950W PowerSupply with Second 950W Emergency Supply
Weight: 22 Kg Netto
It is not a rented server, i buyed this server !

I dont know what i can do else.

Thx
 

McRustReloaded

Retired Staff
Retired Staff
Member
Mar 20, 2016
140
17
18
46
Parts Unknown
Do we know when does the lagg happen?

When a player joins/disconnects, anything like that? Or It seems to be random?
It seems to be random after 1-2 hours, sometimes the server runs like charm for hours, but sometimes after 1-2 hours the server is freakin out.
 

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,095
4,815
113
At your house.
github.com
@Jakkee

I'm trying to grab the mysql db from the guys with the php to make a local database.

Until then, can you debug me something please?

My decompiler gives me this code of your CountryBlackList:
C#:
public void On_PlayerConnected(Player player)
{
    new Thread(() => this.Threaded_PlayerConnected(player)).Start();
}
Can you try It with:
C#:
new Thread(() =>
{
    Thread.CurrentThread.IsBackground = true;
    Threaded_PlayerConnected(player));
}).Start();
At Initialize please print:
C#:
Logger.Log("Main ID: " + Util.GetUtil().MainThreadID);
C#:
Logger.Log("Current ID: " + Util.GetUtil().CurrentWorkingThreadID);

And at Threaded_PlayerConnected please do the this:
C#:
Logger.Log("Thread ID: " + Util.GetUtil().CurrentWorkingThreadID);
^If the threading works, you will only see the message in the logs.

I want to know if the thread Ids are different.
 

McRustReloaded

Retired Staff
Retired Staff
Member
Mar 20, 2016
140
17
18
46
Parts Unknown
@Jakkee

I'm trying to grab the mysql db from the guys with the php to make a local database.

Until then, can you debug me something please?

My decompiler gives me this code of your CountryBlackList:
C#:
public void On_PlayerConnected(Player player)
{
    new Thread(() => this.Threaded_PlayerConnected(player)).Start();
}
Can you try It with:
C#:
new Thread(() =>
{
    Thread.CurrentThread.IsBackground = true;
    Threaded_PlayerConnected(player));
}).Start();
At Initialize please print:
C#:
Logger.Log("Main ID: " + Util.GetUtil().MainThreadID);
C#:
Logger.Log("Current ID: " + Util.GetUtil().CurrentWorkingThreadID);
And at Threaded_PlayerConnected please do the same


C#:
Logger.Log("Thread ID: " + Util.GetUtil().CurrentWorkingThreadID);
^If the threading works, you will only see the message in the logs.

I want to know if the thread Ids are different.
I don´t know how to debug :-(
 

McRustReloaded

Retired Staff
Retired Staff
Member
Mar 20, 2016
140
17
18
46
Parts Unknown
Still the same ! Its lagging so hard that i need to setup whole rust server new now.
I set the server offline now. The i re-install all new.