1

I've been debugging what I was told was a "memory leak" but comparing the old gen graphs of the bad build and the good build, they look almost identical. Is it safe to call this as not a memory leak or is there something else I could be missing?

trincot
  • 317,000
  • 35
  • 244
  • 286
juananneother
  • 155
  • 1
  • 1
  • 5

1 Answers1

1

Yes, you would expect it to appear in the old generation, but I have seen cases where poorly written code is constantly destroying unused objects but then recreating them from unpurged data elsewhere.

The net result was a lot of stuff in Eden, and very little ever getting beyond tenured memory or more static parts of the memory model. This resulted in a lot of full GCs, but nothing obviously affecting the tenured memory.

Chris Cooper
  • 4,982
  • 1
  • 17
  • 27