Open farkas1121 opened 3 months ago
Something we can look into adding. I think most users also run system metrics which they use to monitor memory usage which is why it was never added. Regardless we can look into it at some point.
I don't have the bandwidth right this minute, so if anyone wants to open a PR feel free. If not I'll get to it at some point.
I'm using pterodactyl panel on linux to run my servers and noticed that server metrics reports the total memory usage to be 0. It seems like Rust's native dll returns the wrong value trough
SystemInfoEx.systemMemoryUsed
.One possible way to avoid this issue would be to get the list of processes and sum their memory usage like this.
Or just get the memory usage of the current server like this:
Not sure whether there are any downsides or a better solution, but I think it would be worth it to look into a new way of getting the memory usage on linux systems.