How do I know that the application is actually suffering from memory leaks? Where and how can I find the cause of the possible memory leak? An experienced developer usually begins its troubleshooting by answering the aforementiond fundamental questions.Lets see a typical flow when trying to answer those two simple questions.
- First - you should find evidence hidden somewhere in the logs. If you are lucky you can have a peek at production logs. In most cases there is a pack of angry Kerberos - like guys guarding the access - both from operations and security units of the corporation.
- Lets assume that you can bypass the walls separating you from the vital information. Is it anyhow helpful? Most likely not. You find your good'ol friend Exception in thread "main" java.lang.OutOfMemoryError: while grepping through logs, but nothing interesting seems to precede its creation. There might be hints from monitoring logs that performance degradation started minutes before the actual error. But besides this - business as usual.

Subscribe to blog RSS