So you're saying you want your program to use less memory?
The first step is to find out where the memory is going. Commercial tools like JProbe or OptimizeIt (now part of some product from Borland) make this pretty easy. There are open-source solutions too, like
HAT. Once you know where the memory is going, you'll probably have some idea of what to do about it right away.