How to get a manual heap dump on application hanging (high CPU, high RAM or slow performance)