Skip to main section
Deep understanding of program behaviour is essential to the design of the next generation of garbage collectors and explicit allocators. Until now no satisfactory tools have been available to assist the implementer in gaining an understanding of heap behaviour.
GCspy is an architectural framework for the collection, transmission, storage and replay of memory management behaviour. Its architecture allows easy incorporation into any memory management system: it is not limited to garbage-collected languages. It requires only small changes to the system in which it is incorporated but provides a simple to use yet powerful data-gathering API, that scales to allow very large heaps to be visualised effectively and efficiently. GCspy allows already-running, local or remote, systems to be visualised and those systems to run at full speed outside the points at which data is gathered. Its visualisation tool presents this information in a number of novel ways.
These notes assume you are using Linux.
$ cp jai-1_1_2/lib/*.jar $JAVA_HOME/jre/lib/ext/
where server is either c or cpp, depending on whether you want the C or C++ server. Choose the C server if you are using GCspy with JikesRVM.$ cd $GCSPY_ROOT/src/ $ make install server java
$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GCSPY_ROOT/src/server/lib $ my_application
and click the "Connect" button in the bottom right-hand corner of the visualiser. (Alternatively, you can give the server and port arguments in the Connect dialogue box.)$ cd $GCSPY_CLASSES $ java gcspy.Main -server localhost 3000
GCspy is the product of an Memory Management Network collaboration between the universities of Glasgow (Tony Printezis, under a collaborative research agreement with Sun Microsystems Laboratories) and Kent (Richard Jones).
Screen shots can be found here.
Skip to top of this page