|P is for Practical|
First pass: Change use threads; to use threads stack_size => 4096; and see if things get better.
Next, use whatever tools are available on your system to instrument memory, cpu and socket activity for the process as it is running and capture it to a file. Make that log (sanitised as appropriate) available on line and post a link to it.
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.