jmap

jmap performs heap dumps and gives insight into memory usage.