Added heap dump and thread dump.