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

What does yellow background mean on object's title in Chrome's heap profiler?

Trying to get my head around the heap profiler in Chrome Developer Tools. I see several reachable objects in the snapshot, some of them have yellow background and some not. What does it mean? What's the difference? Color legend is not exactly…
jayarjo
  • 16,124
  • 24
  • 94
  • 138
11
votes
7 answers

Hibernate associations using too much memory

I have a table "class" which is linked to tables "student" and "teachers". A "class" is linked to multiple students and teachers via foriegn key relationship. When I use hibernate associations and fetch large number of entities(tried for 5000) i am…
nikel
  • 3,402
  • 11
  • 45
  • 71
11
votes
1 answer

How to interpret pprof output?

I'm trying to profile an application written in go which apparently uses about 256 virtual memory (checked using ps aux). I'm trying to use pprof package and see what functions allocate/consume most of the memory but the results make no sense to me.…
Anthony Hunt
  • 1,470
  • 5
  • 20
  • 32
9
votes
1 answer

Interpreting pprof heap diagrams

When I profile the heap in go with pprof I get the following: However, I'm not clear on how to interpret that visualization. In particular: "The memory next to the arrows means _____ and the memory inside of a box means ______. So when a box has…
Kyle Brandt
  • 26,938
  • 37
  • 124
  • 165
8
votes
0 answers

GHC heap profiling with -hy - What is ->, ->>, ->>>?

When I profile my program's heap usage with -hy flag (for type descriptions) like ./prog +RTS -hy I often see ->a, ->>a, ->>>a in the results (where a is either another type or *). What does this mean?
dremodaris
  • 358
  • 1
  • 9
7
votes
0 answers

Weird arrows in a Haskell heap profile

When producing a type heap profile (-hy) from a Haskell program, I get these results: ReaderT ->ReadertT ->>* (,) ->(#,#) What is the meaning of the '->' prefix (with one or more '>'), the '*' or the '#' here?
Chatanga
  • 77
  • 2
7
votes
2 answers

Go(lang): How to use PPROF heap profile to find memory leaks?

I am trying to use pprof to verify memory leaks. Can any explain how to read the heap profile that you find at: http://localhost:6060/debug/pprof/heap?debug=1 Also, is it normal that by typing the web command after starting go tool pprof…
Daniele B
  • 19,801
  • 29
  • 115
  • 173
6
votes
1 answer

OverlappedData Memory Leak on Sockets

I'm using async Socket to make connections between client and server using MSDN Docs: https://msdn.microsoft.com/en-us/library/fx6588te(v=vs.100).aspx https://msdn.microsoft.com/en-us/library/bew39x2a(v=vs.100).aspx I started with Synchronous and…
z3nth10n
  • 2,341
  • 2
  • 25
  • 49
5
votes
2 answers

d3.js : orthographic rotation optimization

I made a map using an orthographic projection and I try to improve performance because the rotation is not smooth (around 6-7FPS). It's a map of the world built with a topojson file (world-100m). I need to interact with country and colorized them so…
2
votes
0 answers

golang pprof through http got empty profile output

We use the code below to register http endpoints and do pprof through http. However, we got almost empty output for a 30-seconds CPU profiling. Any suggestions on what we missed? func pprofRouter(router *httprouter.Router) { …
yuyang
  • 1,511
  • 2
  • 15
  • 40
2
votes
0 answers

Can't take native memory snapshots in Visual Studio 2022 Memory Usage tool

In Visual Studio 2022, when I use the Memory Usage tool and set it to "Enable native heap profiling with snapshots", it only includes managed allocations, not native allocations. In Visual Studio 2019, when I run the same tool on the same project,…
2
votes
1 answer

memory usage discrepency between pprof and ps

I have been trying to profile the heap usage of a cli tool built with cobra. The pprof tool is showing like the following, Flat Flat% Sum% Cum Cum% Name Inlined? 1.58GB 49.98% 49.98% 1.58GB 49.98% os.ReadFile 1.58GB 49.98% …
arif
  • 579
  • 1
  • 7
  • 21
2
votes
1 answer

How to profile TemplateHaskell built with Cabal?

Full project at https://github.com/ysangkok/cabal-profiling-issue The project contains scaffolding generated by cabal init. I'll paste the most interesting source snippets now. In Main.hs I have: newtype Wrapper = Wrapper Int deriveConvertible…
Janus Troelsen
  • 20,267
  • 14
  • 135
  • 196
2
votes
1 answer

JProfiller HeapWalker: This view is not available when retained size calculation has been disabled jprofiler

I am a newbie to JProfiler. I am trying to figure out retained and deep size of an object in java. However, I'm getting n/a for all objects in Heap Walker. Also when I'm trying to check Biggest Object, following message has been shown. "This view…
1
vote
0 answers

go tool pprof: no matches found for regexp

cmd:go tool pprof -alloc_objects main.test memprofile.out File: main.test Type: alloc_objects Time: Aug 16, 2023 at 4:33pm (CST) Entering interactive mode (type "help" for commands, "o" for options) (pprof) top Showing nodes accounting for 17323653,…
lixxxxxxon
  • 11
  • 1
1
2 3