I discovered that there are numerous sources of memory leak associated with the ZUI framework's ViewObjects (vector graphic objects). This was especially horrible with tags in ChromosomeView, where having 6 tags would increase memory usage by a few MB each second! I will need to manually clean up ViewObjects when they are no longer in use, since the ZUI framework holds reference to ViewObjects (ironically, for optimization purpose) unless the reference is manually removed, which prevents native Garbage Collection.
I discovered that there are numerous sources of memory leak associated with the ZUI framework's ViewObjects (vector graphic objects). This was especially horrible with tags in ChromosomeView, where having 6 tags would increase memory usage by a few MB each second! I will need to manually clean up ViewObjects when they are no longer in use, since the ZUI framework holds reference to ViewObjects (ironically, for optimization purpose) unless the reference is manually removed, which prevents native Garbage Collection.