Questions tagged [jemalloc]

jemalloc is a general purpose malloc implementation that emphasizes fragmentation avoidance and scalable concurrency support.

jemalloc is a general purpose malloc implementation that emphasizes fragmentation avoidance and scalable concurrency support.

85 questions
1
vote
1 answer

Why a process allocated many non-huge-page memory using library jemalloc when the transparent huge page has been enabled?

I've enable transparent huge page in a process which uses jemalloc for memory allocation, by following steps: setting transparent huge page state to "madvice" : echo madvise > /sys/kernel/mm/transparent_hugepage/enabled; echo madvise >…
1
vote
0 answers

See the readable names with jemalloc

We are trying to catch a memory leak, and we are using with jemalloc. How do you change the tree to display symbol/class names? Right now, our gif looks like this: On most tutorials I see, they just say to set the following 2 env vars: echo…
Ethan Solomon
  • 183
  • 1
  • 4
  • 12
1
vote
1 answer

Heroku Buildpacks in Docker Images

I build my own docker images and run them on Heroku. This works just great, heres an example Docker file: FROM node:14-alpine WORKDIR /app COPY ./ncc/web ./ CMD node ./index.js The problem is I would also like to use Jemalloc for better memory…
mikeysee
  • 1,613
  • 1
  • 18
  • 31
1
vote
0 answers

how to get the memory usage of the process in RAM with jemalloc

I am working on a memory tracker based on jemalloc. It is used to collect basic memory stats roughly of the process by calling mallctl and prevent more upcoming requests when memory is over a threshold. Previously I use the stats.mapped or…
1
vote
2 answers

jemalloc and JVM_FindSignal

As already answered in this question: JVM_FindSignal function continuously allocates native memory jemalloc reporting leaks from JVM_FindSignal is related to missing debug symbols. I certainly have debugging symbols installed,…
Chris
  • 1,226
  • 1
  • 12
  • 26
1
vote
1 answer

Boost.Container `dlmalloc` and `jemalloc`

I've introduced Boost.Container into my project which uses jemalloc as default allocator, looks like Boots.Container uses custom allocator which is dlmalloc and of course when linking I'm failing on "multiple definition" linkage error since two…
kreuzerkrieg
  • 3,009
  • 3
  • 28
  • 59
1
vote
1 answer

Do I need to build Ruby with jemalloc and use the gem if I'm using a Heroku buildpack?

Sample a Ruby (2.4.1) on Rails (4.2.8) app, configured with Puma and deployed on Heroku (cedar-16). Currently developing on a Mojave 10.14.5 MBP. I'm on a mission to cut down memory usage and recently discovered jemalloc via this post. I reinstalled…
Aayush Kothari
  • 526
  • 3
  • 20
1
vote
2 answers

How to make 24-byte size allocations when minimum allocation alignment is 16-byte?

My application makes a lot of allocations of exactly 24 bytes, but I am using a third party library that requires the allocator to provide a minimum of 16-byte alignment. So, if I compile jemalloc configured for 8-bye alignment…
LeoMurillo
  • 6,048
  • 1
  • 19
  • 34
1
vote
0 answers

A bit more explanation on how to use jemalloc statistics

Besides being an apparently good memory allocation library jemalloc also offers built-in allocation statistics. However this requires some understanding on jemalloc's internal data structures. So when I call malloc_stats_print(NULL, NULL, NULL), I…
Yunus King
  • 1,141
  • 1
  • 11
  • 23
1
vote
1 answer

jemalloc generating many files

I followed the jemalloc instructions and setup the jemalloc on centOS 7. However, soon after setting export LD_PRELOAD=/usr/local/lib/libjemalloc.so export MALLOC_CONF=prof_leak:true,lg_prof_sample:50,lg_prof_interval:62,prof_final:true environment…
Raj
  • 401
  • 6
  • 20
1
vote
1 answer

Is this "unknown owner" deadlock a JVM bug, do all java program suffer from it?

One of our web server stopped responsding to any request, jstack suggests that there are deadlocks in the process, serval threads are stuck, the log is like this: Found one Java-level deadlock: ============================= "qtp728030296-143": …
Jin Mengfei
  • 313
  • 3
  • 9
1
vote
1 answer

JeMalloc does not create memory leak dump

I need help with memory profiling using JeMalloc. I do the following things: git clone https://github.com/jemalloc/jemalloc cd jemalloc ./autogen.sh --enable-perf make dist make sudo make install export…
Alexander
  • 11
  • 6
1
vote
0 answers

Can you use jemalloc arenas to implement 32-bit pointers on a 64-bit architecture?

Is it possible to set up an arena with jemalloc that only allocates pages from a reserved 2^32 byte area of virtual memory void* arena_start = mmap(nullptr, 1ull<<32, PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, …
Ryan Burn
  • 2,126
  • 1
  • 14
  • 35
1
vote
1 answer

Does the lg_prof_interval in jemalloc mean dump the heap between two time point?

opt.lg_prof_interval (ssize_t) r- [--enable-prof] Average interval (log base 2) between memory profile dumps, as measured in bytes of allocation activity. The actual interval between dumps may be sporadic because decentralized allocation counters…
fairjm
  • 1,115
  • 12
  • 26
1
vote
1 answer

How to dlopen jemalloc dynamic library

I am trying to dlopen memory allocators at runtime. I have no problem with libc, tcmalloc and tbbmalloc. But trying to dlopen jemalloc results in the following error (caught via dlerror) : /path/to/lib/libjemalloc.so: cannot allocate memory in…
EnzoMolion
  • 949
  • 8
  • 25