MisterTea / EternalTerminal

Re-Connectable secure remote shell
https://mistertea.github.io/EternalTerminal/
Apache License 2.0
3.02k stars 173 forks source link

etserver consuming 475MiB with minimal usage #317

Open dequeued0 opened 4 years ago

dequeued0 commented 4 years ago

That is the memory usage right after starting or restarting the etserver process with just a single session and barely any traffic.

At least the RSS is pretty small (roughly 2MiB to 10MiB most of the time) after my system increased how much swap space it was using. Something seems very wrong with the amount of virtual memory being used.

I'm running Debian buster on a Google Compute Engine f1-micro system (in the free tier) so this isn't exactly a box with a lot of RAM (just 0.6 GB of RAM).

MisterTea commented 3 years ago

etsever will allocate 64MB per connection. You can tune that here: https://github.com/MisterTea/EternalTerminal/blob/master/src/base/BackedWriter.hpp#L44