Memory Tracer

To use this memory tracer, download tracer.jar (or generate it directly from the source code) and run your Java program with the following command:

      $ java -javaagent:<path_to_aspectjweaver.jar> -cp <path_to_tracer.jar>:$CLASSPATH <your_main_class>

This will produce the trace on stderr. So the trace can be saved to a file by appending "2> <desired_trace_file>" to the command above.

On Linux systems, <path_to_aspectjweaver.jar> is typically /usr/share/java/aspectjweaver.jar or /usr/share/java/aspectj/aspectjweaver.jar if AspectJ was installed by the package management system.

By default, everything in java.*, javax.*, org.aspectj.* and sun.* is not traced. This can be changed by modifying the aop.xml file in the source code and regenerating tracer.jar.

Limitations: