forked from mojodna/heroku-buildpack-jemalloc
-
Notifications
You must be signed in to change notification settings - Fork 83
Open
Description
Problem
I am trying to do some heap profiling on our application through jemalloc using all of the various prof options similar to the Heap Profiling UseCase on the jemalloc wiki.
Looking through some code it does not build jemalloc with the --enable-prof flag. Which is why I am guessing its not working for me.
heroku-buildpack-jemalloc/bin/compile
Lines 93 to 94 in b393799
| # Configure jemalloc to run in /app/vendor/jemalloc | |
| ./configure --prefix=/app/vendor/jemalloc |
Curious if you have any advice for how to get the profiling tools to work or plans to allow for additional configuration options to maybe be passed as environment variables
Logs
heroku config | grep MALLOC
JEMALLOC_ENABLED: true
MALLOC_CONF: prof:true,prof_active:true
heroku logs | grep malloc
2024-12-18T20:03:16.505070+00:00 app[web.2]: <jemalloc>: Invalid conf pair: prof:true
2024-12-18T20:03:16.505074+00:00 app[web.2]: <jemalloc>: Invalid conf pair: prof_active:true
2024-12-18T20:03:16.508180+00:00 app[web.2]: <jemalloc>: Invalid conf pair: prof:true
2024-12-18T20:03:16.508180+00:00 app[web.2]: <jemalloc>: Invalid conf pair: prof_active:true
2024-12-18T20:03:16.511202+00:00 app[web.2]: <jemalloc>: Invalid conf pair: prof:true
2024-12-18T20:03:16.511203+00:00 app[web.2]: <jemalloc>: Invalid conf pair: prof_active:true
2024-12-18T20:03:16.514084+00:00 app[web.2]: <jemalloc>: Invalid conf pair: prof:true
2024-12-18T20:03:16.514084+00:00 app[web.2]: <jemalloc>: Invalid conf pair: prof_active:true
2024-12-18T20:03:16.517053+00:00 app[web.2]: <jemalloc>: Invalid conf pair: prof:true
2024-12-18T20:03:16.517054+00:00 app[web.2]: <jemalloc>: Invalid conf pair: prof_active:true
$ heroku ps:exec --dyno web.1
$ cd vendor/jemalloc/bin/
$ jemalloc-config --config
--prefix=/app/vendor/jemalloc
Metadata
Metadata
Assignees
Labels
No labels