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
0
votes
1 answer

Finding native memory allocations in a jna application using jemalloc

We have a Java application that invokes a .so library written in C via JNA,so the Java application and C code run in the same process. We found a slow memory leak, and we have excluded the JVM heap as a cause via JVM heap monitor,confirming that the…
ywu
  • 1
0
votes
0 answers

Build issue when running `make -j` - 'je_malloc' attribute directive ignored

Building rocksdb on my Ubuntu 20.04 box. I get the following error: In file included from db/malloc_stats.cc:16: ./port/jemalloc_helper.h:63:29: error: 'je_malloc' attribute directive ignored [-Werror=attributes] 63 | …
scatter
  • 903
  • 7
  • 24
0
votes
0 answers

c++ jemalloc malloc large fix size (64K, 128K) memory takes more than 300us

I use jemalloc for memory allocation, a lot of threads allocate small or large objects concurrently, and I monitor two large object(64K, 128K) and find that: every 2 or 3 seconds, an 64K or 128K allocation takes about more than 300us. How to fix…
yuandaxing
  • 177
  • 1
  • 8
0
votes
2 answers

Jemalloc: Java Native Memory profiling shows 100% je_prof_backtrace

We have a multi-threaded production Java application. We are trying to check the native memory usage as mentioned in this post. But on the dump I am seeing 100% memory is being taken by je_prof_backtrace ubuntu@platform1:/tmp/jemalloc_dump$…
tuk
  • 5,941
  • 14
  • 79
  • 162
0
votes
1 answer

LD_PRELOAD not working on Heroku + jemalloc + quotaguard

TL;DR: update your bin/qgtunnel. I've recently noticed an increase in my web dyno's memory usage. After digging a bit, I could see that the LD_PRELOAD variable that should be set with heroku-buildpack-jemalloc was not set correctly. I used a tiny…
Ulysse BN
  • 10,116
  • 7
  • 54
  • 82
0
votes
1 answer

Can't enable jemalloc for MySQL 5.7

Attempting to use jemalloc for mysql 5.7.30 Linux db1 4.18.0-193.6.3.el8_2.x86_64 #1 SMP Wed Jun 10 11:09:32 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux MySQL 5.7.30 yum list installed shows: jemalloc.x86_64 5.2.1-2.el8 @epel jemalloc file evident in…
Andrew Poodle
  • 346
  • 3
  • 7
0
votes
0 answers

JVM memory leak diagnosis (jemalloc)

A piece of software from a vendor eats an unholy amount of memory over time. This is a Java application and I've inspected heap and metaspace inside the JRE, everything ok there (uses < 1G RAM). The issue rather seems to be some native memory…
Marki
  • 660
  • 8
  • 24
0
votes
2 answers

Core dump size is increased after freeing memory that was excluded from the core

I use jemalloc 3.6.0-11. I call posix_memalign to allocate a very large block. After allocating, I am calling madvise(ptr, size, MADV_DONTDUMP); to exclude this allocation from the core dump. Before freeing this memory, I call madvise(ptr, size,…
0
votes
2 answers

Heroku node js no web process running

Locally there is no problem. The app is deployed to heroku but I get an error screen. In the logs I get: heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=catan-manager-api.herokuapp.com…
Ace66
  • 133
  • 3
  • 12
0
votes
1 answer

Cassandra can't find jemalloc package on Ubuntu 20.04

Cassandra 3.11.7 on Ubuntu 20.04 doesn't seem to pick up the jemalloc library? apt shows: libjemalloc2/focal,now 5.2.1-1ubuntu1 amd64 [installed] Cassandra logs: jemalloc shared library could not be preloaded to speed up memory allocations The…
xref
  • 1,707
  • 5
  • 19
  • 41
0
votes
0 answers

Is there any method to disable purge of memory in jemalloc?

We are implementing a memory consuming long-running server, which use jemalloc inside for alloc/dealloc memory. The server process data batch-by-batch, continuously. With each batch, it allocates memory (via malloc()) and process data inside the…
walkerlala
  • 1,599
  • 1
  • 19
  • 32
0
votes
1 answer

Understanding Jeprofile output

I was able to generate the Jeprofile output as follows based on the descriptions present here jemalloc post Please find the jemalloc output and the graph. > Using local file /bin/java. Using local file jeprof.57473.0.f.heap. > Total: 79372091 B…
Raj
  • 401
  • 6
  • 20
0
votes
1 answer

Memory Allocation of Apache Ignite vs Redis (jemalloc)?

How does Apache Ignite do memory allocation to avoid memory fragmentation, specifically I'm trying to compare Ignite's approach to Redis's (jemalloc) approach.
Mabloq
  • 47
  • 1
  • 8
0
votes
0 answers

How much memory is consumed by Jemalloc, Debug Symbol and Panic? how to find this ? where it is located?

I am new to RUST as well as for programming. I just wrote LED blinking program on raspberry pi 3 using RUST language. It worked well. My debug binary file size is 4.7MB. Its really huge. So I released the file and it got reduced to 2.5MB. I found…
ganesh
  • 43
  • 1
  • 6
0
votes
0 answers

java debug symbols for jeprof

I'm have generated heap dump as described here jemalloc When I try to use jeprof command to view the symbols I have this missing java debug symbol problem. jeprof output is below (jeprof) top Total: 32802320 B 31968984 97.5% 97.5% 31979144 …
Raj
  • 401
  • 6
  • 20