-
Notifications
You must be signed in to change notification settings - Fork 210
Closed
Description
Describe the bug
Currently, when enable jemalloc-pprof feature, and request /debug/memory/profile to get memory profile, we will get the following error message.
thread 'tokio-runtime-worker' panicked at native-engine/blaze/src/http/memory_profiling.rs:31:58:
called `Option::unwrap()` on a `None` value
To Reproduce
- Applying the patch from fix http server startup #834.
- Using the test code in Http Service Fail to Start #833.
- Running
cargo test --features jemalloc-pprof --package blaze --lib http::test::test_http_service -- --exact --nocaptureunderblaze/native-engine/blaze - curl the corresponding url:
http://localhost:xxxx/debug/memory/profile
Expected behavior
Dump memory profile successfully.
Additional context
After debugging, I found we lack the malloc_conf to enable jemalloc_pprof.
https://github.com/polarsignals/rust-jemalloc-pprof/blob/00cdef93bb4b761d5790e0be1a97f7c33ea04dda/README.md?plain=1#L33-L43
https://github.com/polarsignals/rust-jemalloc-pprof/blob/00cdef93bb4b761d5790e0be1a97f7c33ea04dda/src/lib.rs#L90
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels