3

This is a graph of current RSS. The decrease in the beginning is due to a restart, and then it seems to slowly increase infinitely. Current RSS

This is the heap. The idle heap seems to also be on a slowly upwards trend. The non-idle heap seems to stay down. Heap

Do I have a memory leak, or does this seem normal?

Jonathan Hall
  • 75,165
  • 16
  • 143
  • 189
Anton
  • 5,932
  • 5
  • 36
  • 51
  • take a look at this: https://stackoverflow.com/questions/24863164/how-to-analyse-golang-memory. Eg: you can only tell if you have a leak after a memory profile. – RickyA Sep 19 '17 at 10:03
  • A memory profile doesn't necessarily point to a leak (usually it doesn't), but you do need to use the memory statistics from within the process as the external measurements don't necessarily reflect what the process claims. This graph looks like it's approaching a sustained max, does it ever increase more? What does gctrace say is happening at that point? What are the runtime memory stats? – JimB Sep 20 '17 at 03:36

0 Answers0