larsmos2011 Posted March 10, 2015 Report Share Posted March 10, 2015 Hello, I've noticed that my redis-server.exe only uses 2920 MB of RAM. Is it normal or is there sth. wrong? sry kinda new to redis ;) redis.conf: bind 127.0.0.1 maxmemory 4gb save 900 1 save 300 10 save 60 1000 requirepass trytohaxxusbutdontcryifthispwdoesntwork Link to comment Share on other sites More sharing options...
0 Richie Posted March 10, 2015 Report Share Posted March 10, 2015 Actully you should lower the maxmemory to 2gb, it's been known to cause issues with the default 4gb Link to comment Share on other sites More sharing options...
0 larsmos2011 Posted March 10, 2015 Author Report Share Posted March 10, 2015 Actully you should lower the maxmemory to 2gb, it's been known to cause issues with the default 4gb okay thanks, good to know :) how many ram is your one using if you look on the task-manager? as I said mine shows 2920Mb, Epoch Server has 60+Players Up. Link to comment Share on other sites More sharing options...
0 uniflare Posted March 10, 2015 Report Share Posted March 10, 2015 I really cant see why it needs this much memory. The data is so simple, the entire db is probs less than 100mb, if that. I'm thinking there should be no need for our little servers (even 100+ players is nothing to what redis is designed for) to consume anywhere over 500mb. imo. Confused as to why the default was 4gb, surely that is a standard setting for enterprise solutions, not back yard server hosting? If I was a guessing man, I would say you should be able to get away with 1gb max mem, but i take no responsiblity for lost data! Maybe do a test one day, see how low you can get that maxmemory down to and see what difference it makes. dont forget, redis uses the pagefile too! so all that 4gb is being read/written to/from a file on DISK which imo will slow it down, but apparently redis is fastest for key/value storage but i dunno it just doesn't make any sense to me. lol so quick google took me to some useful info about redis - http://dba.stackexchange.com/questions/72661/redis-takes-up-all-the-memory-and-crashes some more light reading; http://redis.io/topics/memory-optimization Link to comment Share on other sites More sharing options...
0 vbawol Posted March 10, 2015 Report Share Posted March 10, 2015 It doesn't use that much that is just the max memory it can allocate, the real memory usage is likely only 10-100MB depending of the cleanup settings and amount of players. Link to comment Share on other sites More sharing options...
0 uniflare Posted March 10, 2015 Report Share Posted March 10, 2015 If it only needs 10-100mb why have it set at 4gb? surely we would never exhaust that threshold on our server? even with 1000 unique players? Ah wel,l the linsk above explain what you can do to optimize the memory usage. Since you're here @vbawol haev you considered using "hashes"? as explained in "Optimizing" link above? I guess its not needed for the mod to run, it just seems silly to need 2-3 gb of ram to run a database less than 100mb in size. Pretty sure hashes solve that issues (afaik/understand from that article). Thanks awol! Link to comment Share on other sites More sharing options...
0 larsmos2011 Posted March 11, 2015 Author Report Share Posted March 11, 2015 Thanks for the useful posts! Btw. how long are your login times after a restart with about 20-30 players joining instantly? on our server it sometimes takes up to 8minutes to login after the restart, after the restart the login is just like it should be. ok we have no SSD but for Arma2 Epoch and A3 Altis Life it worked fine with our 10k rpm hdd. we have about 6000keys in redis and the database is arround 2MB. maybe this has sth to do with it :) Link to comment Share on other sites More sharing options...
0 vbawol Posted March 11, 2015 Report Share Posted March 11, 2015 If it only needs 10-100mb why have it set at 4gb? surely we would never exhaust that threshold on our server? even with 1000 unique players? Ah wel,l the linsk above explain what you can do to optimize the memory usage. Since you're here @vbawol haev you considered using "hashes"? as explained in "Optimizing" link above? I guess its not needed for the mod to run, it just seems silly to need 2-3 gb of ram to run a database less than 100mb in size. Pretty sure hashes solve that issues (afaik/understand from that article). Thanks awol! You can easily set this to 1GB and or even 512MB. The idea is to make sure it is higher than what is needed to store your data. Just keep an eye on your actual memory usage in relation to object/player counts and expiration times to know what you can get away with. Link to comment Share on other sites More sharing options...
0 Floyd Posted March 11, 2015 Report Share Posted March 11, 2015 There is some interesting reading on why redis uses what it does in a Windows environment in this post: As the software matures, perhaps windows implementation will mature as well. Link to comment Share on other sites More sharing options...
0 larsmos2011 Posted March 14, 2015 Author Report Share Posted March 14, 2015 Okay something must be wrong. We just needed 25mins after a restart to log in. Everytime there is "Starting epoch, please wait..." and then "server not ready yet 0.2" . We have a HDD with 10.000RPM but it never took that long. it used to take about 3-5mins. Link to comment Share on other sites More sharing options...
0 PAR4NA Posted March 15, 2015 Report Share Posted March 15, 2015 Okay something must be wrong. We just needed 25mins after a restart to log in. Everytime there is "Starting epoch, please wait..." and then "server not ready yet 0.2" . We have a HDD with 10.000RPM but it never took that long. it used to take about 3-5mins. then test...remember to modify! start "Epoch_Altis" /min /high "Epoch_Altis.exe" -port=2902 -mod=@Epoch;@EpochHive; "-config=D:\Servers\Arma 3 Server\Epoch_Altis\config.cfg" "-profiles=D:\Servers\Arma 3 Server\Epoch_Altis" "-cfg=D:\Servers\Arma 3 Server\Epoch_Altis\basic.cfg" "-name=Epoch_Altis" -enableHT -autoInit -malloc=system "-bepath=D:\Servers\Arma 3 Server\Epoch_Altis\BattlEye" Link to comment Share on other sites More sharing options...
0 larsmos2011 Posted March 15, 2015 Author Report Share Posted March 15, 2015 (edited) then test...remember to modify! start "Epoch_Altis" /min /high "Epoch_Altis.exe" -port=2902 -mod=@Epoch;@EpochHive; "-config=D:\Servers\Arma 3 Server\Epoch_Altis\config.cfg" "-profiles=D:\Servers\Arma 3 Server\Epoch_Altis" "-cfg=D:\Servers\Arma 3 Server\Epoch_Altis\basic.cfg" "-name=Epoch_Altis" -enableHT -autoInit -malloc=system "-bepath=D:\Servers\Arma 3 Server\Epoch_Altis\BattlEye" Thanks for the help but I also have these parameters inside firedaemon. anyone else has got any hints or sth? edit: maybe the -autoInit and -loadmissiontomemory parameters are causing this issue. maybe this causes to run all epoch stuff and missions etc. before the players could be initialised. so the server first needs to mess arround with these things than with players. gonna test this at the next restart Edited March 15, 2015 by larsmos2011 Link to comment Share on other sites More sharing options...
0 larsmos2011 Posted March 16, 2015 Author Report Share Posted March 16, 2015 okay got it fixed, it were the parameters -autoInit and -loadmissiontomemory so don't use them :) Link to comment Share on other sites More sharing options...
0 uniflare Posted March 16, 2015 Report Share Posted March 16, 2015 Autoinit huh. Try to reproduce and submit the report the arma tracker. Autoinit should not affect anything except to load the mission with/without players. Link to comment Share on other sites More sharing options...
0 second_coming Posted March 17, 2015 Report Share Posted March 17, 2015 I have both those startup parameters in my batch file and my server is ready to log in about 60-90 seconds after reboot. Link to comment Share on other sites More sharing options...
Question
larsmos2011
Hello, I've noticed that my redis-server.exe only uses 2920 MB of RAM. Is it normal or is there sth. wrong? sry kinda new to redis ;)
redis.conf:
Link to comment
Share on other sites
14 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now