Server resources help
#1

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?
Reply
#2

Less unnecessary timers probably. Ram is all fine.
Reply
#3

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?
Reply
#4

Remove them and try your server again. 30mb sounds like a lot for a idle server...
Reply
#5

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.
Reply
#6

Quote:
Originally Posted by linuxthefish
View Post
Remove them and try your server again. 30mb sounds like a lot for a idle server...
I'll try.

Quote:
Originally Posted by Mauzen
View Post
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)