View RSS Feed

Advanced Java

Advanced Java programming.

  1. Minimize memory leaks in Java

    by , 01-08-2012 at 12:46 PM
    The main causes for memory leaks in java are poor design with invalid references. Garbage collector is not able to claim those objects.

    Following steps help you to detect memory leaks in your application.

    Use tools like JProbe, OptimizeIt.
    Use operating system process monitors.
    Override totalMemory() and freeMemory() methods in the Java Runtime class.

    Following steps help you to minimize memory leaks in your application.
    ...
    Categories
    Memory