You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Struggling with Bastion does not release memory after handling messages
Version: bastion v0.4.5 feature tokio-runtime / tokio v1.21 feature full / tokio-util v0.7 feature full
Platform: Linux 5.15.68.1-microsoft-standard-WSL2 x86_64 GNU/Linux
Subsystem: Ubuntu 20.04 LTS
Hi,
Now I am working with a project that uses Bastion as a core of actor model architect. I have used it once before but with this project I am running into a problem as I describe. Here is my little demonstration about it:
Result
After start: memory is about 0.2%
After first std::io::stdin().read_line(&mut buf).unwrap();: Running time: 2488.367728948s - memory is about 0.5%
After second std::io::stdin().read_line(&mut buf).unwrap();: Waiting time: 792.050614104s - memory is being kept at 0.5%
Sorry for my information that could not be easy to analyze (I am still new to Rust and have not found a tool to measure memory yet 😓).
As you can see if I send 10_000 of messages at a time (each message is about 300 bytes (in practice is more than that)) the issue comes.
Hope someone could help me out of this soon. Did I do something wrong? Thanks in advance.
The text was updated successfully, but these errors were encountered:
Struggling with Bastion does not release memory after handling messages
bastion v0.4.5
featuretokio-runtime
/tokio v1.21
featurefull
/tokio-util v0.7
featurefull
Hi,
Now I am working with a project that uses Bastion as a core of
actor model
architect. I have used it once before but with this project I am running into a problem as I describe. Here is my little demonstration about it:Result
After start: memory is about 0.2%
After first
std::io::stdin().read_line(&mut buf).unwrap();
:Running time: 2488.367728948s
- memory is about 0.5%After second
std::io::stdin().read_line(&mut buf).unwrap();
:Waiting time: 792.050614104s
- memory is being kept at 0.5%Sorry for my information that could not be easy to analyze (I am still new to Rust and have not found a tool to measure memory yet 😓).
As you can see if I send
10_000
of messages at a time (each message is about 300 bytes (in practice is more than that)) the issue comes.Hope someone could help me out of this soon. Did I do something wrong? Thanks in advance.
The text was updated successfully, but these errors were encountered: