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
0 answers

jemalloc env setup on Windows VS2017

I'm following the instructions given here (this page indicates VS2015, but the folder obtained from released jemalloc contains sln for both 2015 and 2017), and it fails running: bash -c "CC=cl.exe ./autogen.sh" from "VS x86 Native Tools Command…
lemon
  • 336
  • 2
  • 17
1
vote
2 answers

jemalloc not detecting memory corruption

The following program does not trigger an assert failure: int main(int argc, char **argv) { int * n = (int *)malloc(100); //malloc_stats_print(nullptr, nullptr, "gablh"); free(n); *n += 1; std::cerr << *n << std::endl; for (int i = 0; i…
Amitabha
  • 83
  • 5
0
votes
0 answers

Ubuntu 22.04 with varnish 7.0.3 memory issues

I currently have a problem with varnish 7.0.3 on ubuntu 22.04. I'm using varnish to serve Magento frontend. Right now I have a problem with the varnish Transient storage. It keeps increasing and never goes down. It ended up consuming all the memory…
0
votes
1 answer

How to use Jemalloc memory allocator only for a certain process on Ubuntu?

I am using Jemalloc on Ubuntu 20.04 for my nodejs apps using export LD_PRELOAD=$LD_PRELOAD:/usr/lib/aarch64-linux-gnu/libjemalloc.so and it works really well. However I am not able to benefit from it with Chromium-browser and I run into ERROR:…
Hypothesis
  • 1,208
  • 3
  • 17
  • 43
0
votes
0 answers

LD_PRELOAD'd jemalloc causes GLIB_2.32 not found

Problem I'm trying to profile a Java program which uses JNI. I'm using this as a guide. I've downloaded version 5.3.0 of jemalloc. I've done configure and make to build it (in the rockylinux:8.8 container). I copy that directory to a RHEL8 system. I…
karobar
  • 1,250
  • 8
  • 30
  • 61
0
votes
1 answer

How to convert jeprof output to human readable format?

Failing while converting hprof output to gif format. jeprof --show_bytes --gif /usr/local/openjdk-11/bin/java jeprof.*.heap > /tmp/profile_1.gif Exception: Can't exec "objdump": No such file or directory at /usr/bin/jeprof line 4463. objdump -h…
amitwdh
  • 661
  • 2
  • 9
  • 19
0
votes
1 answer

Am I running into a an ArcGIS SDK memory leak?

The Problem I am building a GIS module for a system using ArcGIS Java Map SDK v200.0.0. The general functionality flow is, I connect to a few Esri servers, pull down some features/data using their APIs, run a few calculations, and write to a file.…
0
votes
0 answers

jeprof isn't resolving the symbols

I am not able to understand and analyze the profile generated using jeprof as it is not maping the symbols and showing the hex addesses I guess. I am trying to generate the profile of following code: #include #include #include…
Huma Zahid
  • 11
  • 2
0
votes
0 answers

Benchmarking redis with different allocators is no effect

I need to find out which of the libraries (libcmalloc, jemalloc, tcmalloc) is more productive using Redis. I compile redis from source with various libraries and run the benchmark (shown below), but the results are almost…
0
votes
0 answers

why does bcc memleak lose malloc information

I'm using bcc-memleak to locate memory leak in my project. But the top command shows that the VIRT increase from 100GB to 200GB and RES from 60GB to 100GB in 10-hours, while memleak shows that only 150MB memory was not released. I compiled project…
moore
  • 1
  • 1
0
votes
1 answer

Install jemalloc on Centos 8

I was checking this Confluent article and decided to change RocksDB’s default memory allocator. Yum can't find the formula jemalloc, though. Is there an easy way to install it in CentOS 8 without having to build it?
AmsterdamLuis
  • 341
  • 3
  • 21
0
votes
0 answers

Automatically purge files generated by jemalloc

I am trying to run jemalloc 5.2 with below options: LD_PRELOAD='path/lib/libjemalloc.so'; MALLOC_CONF= 'background_thread:true,prof:true,prof_leak:true,lg_prof_interval:30,lg_prof_sample:20,prof_prefix:/path/jeprof,prof_final:false'; Is there a…
Saurav Prakash
  • 1,880
  • 1
  • 13
  • 24
0
votes
0 answers

is it safe to tunabe jemalloc page size to 64k on linux

for my team’s enterprise product, we have been using jemalloc 3.6. Currently, we are trying to upgrade to 5.3 version. In the 5.3 version, we are noticing that there is a slightly better performance when running with a 64k page size than with a 4k…
0
votes
1 answer

How to make Jemalloc Work in NodeJS Server running on Heroku

I am doing some image manipulation on the server side with a library called sharp. Unfortunately sharp is consuming so much memory during image transformation which ultimately leads to crashing the server every time. This is weird. After several…
ololo
  • 1,326
  • 2
  • 14
  • 47
0
votes
1 answer

Why jemalloc's autogen.sh use "for i in autoconf; do ... done" not autoconf directly?

In jemalloc, autogen.sh has following code snippet: for i in autoconf; do echo "$i" $i if [ $? -ne 0 ]; then echo "Error $? in $i" exit 1 fi done I dont know why not directly write as: echo "autoconf" autoconf if […
persuez
  • 110
  • 6