shadowsocks-rust
shadowsocks-rust copied to clipboard
Is it possible to reduce memory requirement?
Probably most servers running shadowsocks have only 1 GiB memory,But compiling shadowsocks-rust require 2 GiB.
pre-built binaries works fine,but can't use optional features(please correct me if i am wrong).
Can memory requirements be reduced so we can build it from small VPS?
https://github.com/shadowsocks/shadowsocks-rust/issues/600#issuecomment-907082339
@Nyarukocqc You can also try -j1
Does --bin ssserver require less RAM when compiling? I compiled successfully several times with that option on a 1GB instance.
EDIT: Now that I routinely compile ssserver on the instance, I see it often fails on the first try (if not just rebooted), but a retry always works for some reason...
Yes, of course.
cargo +nightly install shadowsock-rust --bin ssserver
On my box it even compiles with just 512M RAM and 1G swap 😅