Skip to content

Commit

Permalink
service-mango-health: use jemalloc (#922)
Browse files Browse the repository at this point in the history
  • Loading branch information
farnyser authored Mar 27, 2024
1 parent f54bb6f commit ceeac9d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/service-mango-health/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ use crate::processors::health::HealthProcessor;
use crate::processors::logger::LoggerProcessor;
use crate::processors::persister::PersisterProcessor;

// jemalloc seems to be better at keeping the memory footprint reasonable over
// longer periods of time
#[global_allocator]
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
let args: Vec<String> = std::env::args().collect();
Expand Down

0 comments on commit ceeac9d

Please sign in to comment.