in reply to Looking for advice on how to tune stack size for threads

I strongly advise keeping the total number of threads small.   If you need a work-queue, or even a full request-management infrastructure, such things already exist within CPAN.   “A thread” and “a request” are not the same thing.   A single request-processing thread might live for many months and process millions of requests during its venerable lifetime.