Does high QPS against Workflow's Query methods effect thread count limit?

Hi,

I was wondering if there would be concerns if a workflow’s query method is called a lot . I’m not sure if this is related, but I’ve noticed the temporal queue size increase to a point where I run out of threads. I was wondering if this could be attributed to the QPS of the query method.

Also this is might be a dumb question, but what is the number of current worker threads based off of. For example, I’m guessing I can’t use java.lang.Thread.activeCount() to determine what the current thread count is for the workers. It’ll be nice to be able to track this or print it out.

Thanks,
Derek

What is the indication that you are running out of threads? Is latency increased or do you see some exceptions?