Posts: 3,351
Threads: 780
Joined: Jan 2010
Hello, i use Volt-Host to host my test server and i noticed my gamemode uses much CPU (4%) and RAM (30 mb) when is empty.
The plugins i use are: irc,streamer,crashdetect and ssacanf.
Any tip to how lower this memory and cpu usage?
Posts: 4,878
Threads: 85
Joined: Jun 2007
Reputation:
0
Less unnecessary timers probably. Ram is all fine.
Posts: 3,351
Threads: 780
Joined: Jan 2010
This are the timers i use:
Code:
savestats = SetTimer("SaveAllStats", 450000, true);
zonetimer = SetTimer("ZoneUpdate", 2000, true);
htimer = SetTimer("HealthTimer", 5000, true);
SetTimer("VipMoney", 1000, true);
SetTimer("CheckHeadShot", TIMER_INTERVAL, 1);
SetTimer("UpdateJP", 30000, true);
SetTimer("Draw", LOTTO_DRAW*1000*60, true);
SetTimer("InfoUpdate", 1000, 1);
This is the problem?
Posts: 2,857
Threads: 62
Joined: Dec 2010
Reputation:
0
Remove them and try your server again. 30mb sounds like a lot for a idle server...
Posts: 4,878
Threads: 85
Joined: Jun 2007
Reputation:
0
Depends on what these timers do.
In general, RAM is just rarely effected by the playercount. Most is taken up by global variables, and the dynamic stack, that actually can change, just rarely goes above 1mb.
Posts: 3,351
Threads: 780
Joined: Jan 2010
Quote:
Originally Posted by linuxthefish
Remove them and try your server again. 30mb sounds like a lot for a idle server...
|
I'll try.
Quote:
Originally Posted by Mauzen
Depends on what these timers do.
In general, RAM is just rarely effected by the playercount. Most is taken up by global variables, and the dynamic stack, that actually can change, just rarely goes above 1mb.
|
I use that timers to save players stats,the turf wars zones,anticheat,money every minute to vip players,lotto timers and kills/deaths textdraws timers.