Obtaining and analyzing thread dumps