Fix memory leak if thread dump was very large.

 Limit the size of the thread dump that can be bundled to 2 megabytes. Lowered the file cap to 50 files.