0

I have written an application server in C++ (using libhv as my server library).

The RSS memory of my app keeps increasing when I do the load testing. I did use tools like Intel Inspector and Heaptracker to see for memory leaks.

Intel inspector claims no memory leaks.

Heaptracker claims 1.5-4 MB of memory leaks, however I have seen my app can use RSS of upto 500 MB (or more) during those time. The code where heaptrack shows error are not part of my code either and I suspect these are generated due to shutting down app server abruptly.

Is this worrying and possible memory leak issue. And what other tools can I use to pinpoint the problem if exist any.

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Anurag Vohra
  • 1,781
  • 12
  • 28
  • One possibility is [memory fragmentation](https://stackoverflow.com/questions/3770457/what-is-memory-fragmentation), where the allocation pattern might cause large allocations to not always find a matching free'd space, so they instead have to get a fresh new block. Can make the heap grow bigger and bigger without technically leaking anything. – BoP Mar 30 '23 at 09:38

0 Answers0