-
Notifications
You must be signed in to change notification settings - Fork 40.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The value of the tomcat.threads.config.max metric is always -1, irrespective of the configured maximum number of threads #40957
Comments
Thanks for the report. The setting is working as expected and Tomcat's thread pool has a max size of 400. The problem is that the metric is incorrect. I believe that the metric's incorrect due to #36087. It has changed the executor that Tomcat uses so it's no longer internal to the endpoint. This means that it returns
|
Thank you for your kind reply. You actually said that Tomcat's maximum number of threads was set to 400, and the metric was incorrect. But I debugged the part of code you mentioned, and maxThreads is 200. internalExecutor is false as you said. Is the value of 200 here meaningless? It works normally in 3.2.6. |
Yes, it's meaningless unless the executor is internal. What matters is the configuration of the endpoint's executor. If you look at |
I've opened https://bz.apache.org/bugzilla/show_bug.cgi?id=69133 - if this is resolved, we can switch back to the default executor and set the queue size for #36087 via a normal setter. |
Tomcat has added a setter to set the maximum queue size. When using this setter, this issue should go away. I've opened #41093 for that. |
Bug
my application.yml is
application.yml
but
http://localhost:8080/actuator/prometheus
I don't know why not working.
Environment
solution
my only solution is downgrading spring boot 3.3.0 to 3.2.6
Fortunately, it works successfully in 3.2.6, but I report this bug.
The text was updated successfully, but these errors were encountered: