Profiling memory allocations in run-time in production

Evgeniy Ivanov i at eivanov.com
Sun Dec 22 23:41:01 PST 2013


Hi,

I need to profile my application running in production. Is it
performance safe to build jemalloc with "--enable-prof", start
application with profiling disabled and enable it for short time
(probably via mallctl() call), when I need? I'm mostly interested in
stacks, i.e. opt.prof_accum. Or are there better alternatives in
Linux? I've tried perf, but it just counts stacks and doesn't care
about amount of memory allocated. There is also stap, but I haven't
try it yet.


-- 
Cheers,
Evgeniy



More information about the jemalloc-discuss mailing list