Auto Restart On Heavy RAM UsageSuggestion

Hello,

I like this mod very much. My server is currently experiancing a lot of drops since last force wipe. Last force wipe wasn't good for a ton of mods I use. I was wondeirng if we can have this mod start a forced smooth restart countdown after X% of server RAM has been surpassed. Of course you should be able to choose the % before a force restart countdown starts. This would help my players a lot so they don't just get kicked out of nowhere. So we can ride out this lag and disconnect until all the mods are properly updated.

Thank you

Sounds good as an idea, but at the moment I can't tell if I will be able to introduce such a feature. The reason is that I'm not sure if it's possible to get the real ram usage if the server process from within the plugin (it's possible to get managed ram usage, which is how much memory mono runtime occupies, but getting the actual memory usage of the server process involves access to System.Diagnostics namespace which is banned in the sandbox except few members of it). I will do the research.

I bow to you my lord and saior. I hope Raid bases and so on can get their plugin updates out. This wipe has been ROUGH!

Thank you

i9VUU5ecDQLoWEq.png 2CHEVSKII

Sounds good as an idea, but at the moment I can't tell if I will be able to introduce such a feature. The reason is that I'm not sure if it's possible to get the real ram usage if the server process from within the plugin (it's possible to get managed ram usage, which is how much memory mono runtime occupies, but getting the actual memory usage of the server process involves access to System.Diagnostics namespace which is banned in the sandbox except few members of it). I will do the research.

I believe Rust has methods for some stats though.

What do you mean by methods for some stats?

you could imperment a watchdog timer ..it looks for a event where server has gone off line (say from steam) for xx mins  and it it does that xx times in say 1/2 hour it restarts server

it could look for the google ping if ping is over a certain amount it reboots the server