Server resources help -
Face9000 - 12.10.2012
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?
Re: Server resources help -
Mauzen - 12.10.2012
Less unnecessary timers probably. Ram is all fine.
Re: Server resources help -
Face9000 - 12.10.2012
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?
Re: Server resources help -
linuxthefish - 12.10.2012
Remove them and try your server again. 30mb sounds like a lot for a idle server...
Re: Server resources help -
Mauzen - 12.10.2012
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.
Re: Server resources help -
Face9000 - 12.10.2012
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.