Two suggestions:
1: Make sure there are no references to the objects you no longer need. For example, if you store a reference in a container, the memory will not be released until there are no more references to a particular object.
2: Once you reset all of the references, invoke:
System.gc() or Runtime.getRuntime().gc(). This should suggest JVM to kick off a garbage collector.