DZone Java Zone
Follow
Reading GC Logs: Memory Leak or Undersized Heap?
It's 3 AM. Your phone buzzes. The pipeline that's been running fine for six hours just died with java.lang.OutOfMemoryError: Java heap space, and the on-call channel wants to know: is this a leak, or did we just under-size the executors? Someone suggests bumping memory from 8g to 12g and going back to sleep. Someone else suspects the new dedup cache from last week.The GC log won't settle that argument by itself — but it tells you which diagnostic to run next, and that's worth more than a guess at 3 AM.