Questions tagged [heap-profiling]

Use this tag for questions concerning generation, visualization and analysis of heap memory profiling data, e. g. for uncovering memory leaks or measuring memory usage.

43 questions
0
votes
0 answers

How to make pprof for tcmalloc show all allocated memory instead of only the difference to the previous dump?

I'm using libtcmalloc.so with LD_PRELOAD on some executable and it works fine. The problem is, that the output only contains the difference compared to the previous file. But I would like to see all allocated memory (and not freed) since the start…
Frank Puck
  • 467
  • 1
  • 11
0
votes
0 answers

Avoiding garbage while creating objects using Scala runtime reflection

In the example code below, I am trying to create case class objects with default values using runtime Scala reflection (required for my use case)! First Approach Define default values for case class fields Create objects at runtime Second…
iamsmkr
  • 800
  • 2
  • 10
  • 29
0
votes
0 answers

Replacement for hprof heap=sites, for Java 17

Hprof was removed from the JDK in version 9. While there exist alternatives for some of its functionality, I cannot seem to find anything which matches the functionality of Hprof's "heap=sites". In this mode, I'd simply run the application with an…
0
votes
0 answers

golang profiling running production application without restart

I have a running production golang application. It has memory leakage. Need to find the cause. If I restart with _ "net/http/pprof" issue might not happen again. Because out of 4 servers only this server has this issue I want to profile the running…
naveen
  • 124
  • 9
0
votes
1 answer

TCMALLOC memory leak

On Windows when I static bind tcmalloc with my code, I see continuous memory growth, but there is no growth if I do not use tcmalloc. issue is not present in Linux. I have tried flags below flags: TCMALLOC_RELEASE_RATE =…
0
votes
1 answer

Filtering heaptrack data for size

I recorded a *.gz file with heaptrack for my application. I want to use it to find out how much memory is wasted by using small allocations. Now my question is: Is it possible to filter the gz or data files created by heaptrack so only allocations…
Desperado17
  • 835
  • 6
  • 12
0
votes
0 answers

go pprof heap profile vs top mem_usage

I am running go application and use pprof to get heap profile of it as below: curl -s http://localhost:/debug/pprof/heap > heap_profile.out go tool pprof heap_profile.out As a result, I get this: Showing nodes accounting for 507.98MB, 99.41%…
Rohanil
  • 1,717
  • 5
  • 22
  • 47
0
votes
0 answers

JvisualVM: strange application behavior

Here is my graphics from jvisualvm (after 2 hours, 20 hours, 22 hours of the application work). I can't explain such behavior. Please, help me with your advices. I don't see memory leaks, but CPU usage is growing slowly.
0
votes
1 answer

Heap & Stack Usage ARM Cortex M3, M5

I want to measure Stack and heap usage while certain mathematical algorithm is running on my Renesas S3A7 ARM M3 based controller. Is there any way or procedure how I can measure the maximum memory utilized while executing certain functionality?
Justin J
  • 1
  • 1
0
votes
1 answer

Heap snapshot size is lot less than volume of RAM used

I'm checking memory consumption of a particular tab in Chrome via its Task Manager. It shows me rather huge amount of RAM used: Yet, when I take a heap snapshot in Developer Tools, its shown size is several times less: How can that be?
0
votes
1 answer

How does the dominator object may lack references to an object it dominates?

I was going through the documentation of chrome dev tools. On this page on memory analysis it said : Dominator objects comprise a tree structure, because each object has exactly one dominator. A dominator of an object may lack direct references to…
0
votes
1 answer

Using gperftools/Heaptrack without installation

I am trying to do heap profiling of C++ application on unix platform. I have tried valgrind's massif but it makes application very slow and affects behavior of the application. I was searching for other options and came across gperftools and…
HadeS
  • 2,020
  • 19
  • 36
-1
votes
1 answer

Why JVM doesn't throw out of memory error even if the memory reached the maximum heap size?

I am running a Java programming which creates more objects in memory inside a while loop. I set the maximum heap size as 10MB. I am watching task manager, the JVM runs even after 10 MB. I am expecting out of memory. But it is not throwing , it is…
JavaUser
  • 25,542
  • 46
  • 113
  • 139
1 2
3