Memory Profiling

One of the reasons for Java's success is its ability to perform memory management - that is, Java is designed to ensure memory is properly allocated and freed. Does this mean you, as a developer, no longer have any responsibility regarding your software's usage of memory?

No.

There are two primary reasons for a developer to remain vigilant:

A memory profiling utility indicates a running tally of allocated memory as well as those portions of your code that reference memory at a specified moment in time (such as when the program exits). Such information can be used to ensure all unnecessary memory has been dereferenced and that memory usage has been optimized.

 

This function is provided in IBM Rational Test RealTime by the memory profiling feature for the Java language.

Next: Performance profiling