I have a Java microservice in which on a daily basis we have 41 threads of http-nio-9039-exec-.
Occasionally, the number of http-nio-9039-exec- threads get to 200, and stays up for several hours, and then decreases gradually.
After a few minutes that the number of http-nio-9039-exec- threads gets to 200, we experience a delay in the MS.
What can cause the dramatic jump in the thread count ( from 41 to 200)
Would you recommend setting server.tomcat.threads.max
to a value above 200 ?
What would be the implications on the CPU and memory?