How to investigate a potential Rust memory leak?

This page summarizes the projects mentioned and recommended in the original post on /r/rust

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • axum

    Ergonomic and modular web framework built with Tokio, Tower, and Hyper

  • I've built a simple Rust rest api using [axum](https://github.com/tokio-rs/axum) that interfaces with with a C++ library via bindings that I've also written in Rust. I've been very careful while writing it and consulted the bind-gen channel on the Rust discord for advice and assistance. I've noticed the memory consumption of the service gradually increase from a menial 15mb to over 120mb in a series of 11 days.

  • flamegraph

    Easy flamegraphs for Rust projects and everything else, without Perl or pipes <3 (by flamegraph-rs)

  • I had some nice insights using FlameGraph that relies on Linux perf. There is a Rust version here.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts