Diagnosing memory leaks in Java applications
Despite being a garbage-collected language, memory leaks are still possible (and quite common) in Java. The simplest example is an in-memory data structure that grows with every unit of work performed by the system. For example, imagine you store an in-memory log for every request/response you process, and never bound the size or flush to disk. Some other examples include: File leaks, where a file or socket is not closed. These consume both memory and OS file handles and will eventually fail....