a large number of http requests: 400+
> TaskQueue extendsLinkedBlockingQueue and most calls to TaskQueue.offer end up
> callingsuper.offer which provides the necessary thread-safety.
2. the issue is that TaskQueue.offer return false directly instead of calling
supper.offer when huge requests (more than maximum pool size, but
- Original Message -
From: Christopher Schultz
To: users@tomcat.apache.org
Subject: Re: Why org.apache.tomcat.util.threads.TaskQueue#offer doesn't have
synchronized modifier?
Date: 2022-04-20 01:32
1. "server.tomcat.max-threads" is a setting which is defined in
Tomcat version:
9.0.62https://github.com/apache/tomcat/blob/9.0.62/java/org/apache/tomcat/util/threads/TaskQueue.java#L116
//if we have less threads than maximum force creation of a new thread
if (parent.getPoolSize()