memory leaks

  • submit to reddit

Generic steps to identify a memory leak

1. Start the application with profiler options enabled. 2. Run Garbage Collector using profiler client tool. 3. Capture memory snapshot. 4. Submit request to the server application. 5. Once the job has run successfully run GC again. 6. Capture memory...

3 replies - 1854 views - 02/17/10 by Sharath H in Tips and Tricks

How to Fix Memory Leaks in Java

Your pager hasn’t been sleeping well. It periodically wakes you up in the middle of the night to tell you that your server is firing off “OutOfMemoryError” messages. Worse still, your significant other forcibly relocated you to the couch and told you...

12 replies - 78659 views - 03/18/09 by Veljko Krunic in News

Avoid NIO, Get Better Throughput

The Java NIO (new/non-blocking I/O) API introduced in Java 1.4 is arguably the most arcane part of the standard library.  With channels, selectors, byte buffers and all the associated flipping, marking, compacting, event-handling and...

5 replies - 10171 views - 09/03/08 by Dan Dyer in Articles