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

Protobuf marshalling memory efficiency in Go

I have an issue with protobuf marshalling consuming a lot of memory. Over the time it looks like a memory leak: process consumes a lot of heap and finally gets killed by OOM. The service is a networking cache for protobuf objects and the vast…
dkrot
  • 11
  • 3
1
vote
1 answer

Show full names in GHC's heap profiler file

I was trying to understand GHC's heap profiling file. But names are shortened. JOB "tutd -d db +RTS -h -s -p" DATE "Thu Oct 21 09:02 2021" SAMPLE_UNIT "seconds" VALUE_UNIT "bytes" BEGIN_SAMPLE 0.000000 END_SAMPLE 0.000000 BEGIN_SAMPLE…
1
vote
0 answers

Why pprof heap inuse_space less than container_working_set_size?

I found in grafana that my pod <***-qkcdl> occupated about 1.0G of container_memory_working_set_bytes, and 1.4G of container_memory_rss; pods momery usage in grafana container_memory_rss of pod(max avg current) and my query of…
1
vote
1 answer

How to switch the profiling mode to Memory mode in Netbeans 11's profiler?

I ma running Netbeans 11 on a Linux 64 bit machine (32 GB of RAM, 8 virtual CPUs) with Open JDK 11. I want to profile an app (which is an Indexer for SOLR) because after a long running period on production I get Out Of Memory errors and I see that…
HelloWorld
  • 2,275
  • 18
  • 29
1
vote
1 answer

How to use pprof to see memory usage by web server after HTTP requests

The documentation for net/http/pprof explains how to create a 30-second CPU profiling session and analyze the outcome. This allows me to initiate one or more HTTP requests and see the resulting CPU utilization of my web application. I see a route…
Tantillo
  • 367
  • 1
  • 5
1
vote
1 answer

Visual Studio 2017 - Diagostic tool - Heap profiling affects program memory consumption

I am trying to debug strange memory leak in C# application (uses c++/cli and c++) using Diagnostic tool and Memory usage snapshots. But i have discovered one strange problem. When I run debug in VS2017 with Heap Profiling turned on memory…
watbywbarif
  • 6,487
  • 8
  • 50
  • 64
1
vote
1 answer

Setup triggers in JProfiler for the remote connection

I have JProfiler 10 connected to the remote server via Quick Attach. Is there a way to enable triggers to save snapshots on timer? So far I have been unsuccessful with getting this to work on remote connection. It works as expected on local…
Nestor Fedyk
  • 188
  • 1
  • 6
1
vote
1 answer

Slight difference of Non-heap memory usage as a Java program runs

I have a simple code for a multi-threaded echo server in Java (it returns whatever received back to the clients). I'm profiling the various resources including the non-heap memory usage. I understand the non-heap memory of JVM is also created at the…
Tina J
  • 4,983
  • 13
  • 59
  • 125
1
vote
1 answer

get a heap dump from a JRE only on Windows

Our product runs on our customer's servers with only a JRE(no JDK) on Windows. I know that I can get a heap dump on OutOfMemoryError through a flag. However, is there a way to get a heap dump from the JRE JVM process proactively ? I was planning on…
anjanb
  • 12,999
  • 18
  • 77
  • 106
1
vote
1 answer

Do identical chrome object ids imply the same object in the heap profiler?

I am working through a memory issue with one of our webapps. I am using Chrome's heap profiler. I want to make sure I understand something very explicitely, as I'm making assumptions on this information. The @ symbol in the heap profile screenshot…
Doug T.
  • 64,223
  • 27
  • 138
  • 202
1
vote
2 answers

How can a regression test prove whether VirtualAlloc was called?

I'm writing a regression test for a (Win7) C++ routine that is being optimized, which formerly freed and re-allocated a lot of giant buffers: memory churn. I would like to prove that during the test, the program doesn't allocate any large memory…
Erik Olson
  • 1,154
  • 8
  • 18
1
vote
1 answer

JavaScript profiling using chrome Dev tools

Every time when I take a heap snapshot after doing some operation to my web page the size increases by 3 to 4 MB. If I continue doing it 10 to 15 Times the size of heap snapshot increases up to 100 MB. Does it prove that my app has a memory…
1
vote
0 answers

How to display symbols in stack trace of google-perftools heap profiler

We're using google-perftools heap profiler in a TDD environment. We get the heap dump at the end that we can use pprof to see the hot spots. It shows the symbols but gives little to no information about how the leak is reached in the stack. In fact,…
William
  • 337
  • 4
  • 14
0
votes
0 answers

How can I collect heap memory distribution by types and memory ownership topology from a C++ application core dump?

I am trying different approaches to profiling the heap of a C++ application. Lets say I have a process running in a production environment. I notice high memory consumption and take a full memory dump of it. What I would like to do with this dump is…
tldr
  • 11
  • 1
0
votes
0 answers

Why go heap profiler shows significantly less total memory than MemStats.HeapAlloc?

I'm trying to investigate a memory leak in our service. And for some reason, while HeapAlloc grows up to 3.7gb, pprof heap profiler explains only 2.4gb. What is that 1.3gb space for? I thought, that HeapAlloc memory is exactly what heap profiler…