jetty 配置:什么是“lowThreads”?
我正在编写一个码头配置文件,但我无法找到有关线程池参数的信息。
我的目标是调整 jetty 的性能,我想了解“lowThreads”项对于 ThreadPool 对象意味着什么。
到目前为止,我发现它用于 "设置低资源线程阈值", 并且它告诉服务器"低于该阈值,池将被视为低线程”。
但这并不简单。被认为是“线程不足”意味着什么以及对码头行为的影响是什么?
(我使用的是码头6.1.2)
I'm writing a jetty configuration file, and I haven't been able to find information about a thread pooling parameter.
My aim is to tune jetty for performance, and I would like to understand what the "lowThreads" item means for a ThreadPool object.
Up to now, I've found that it's used to "set the low resource threads threshold",
and that it tells the server that "under that threshold the pool will be considered low on threads".
But it's not straightforward. What being considered "low on thread" means and what are the consequences on the behaviour of jetty?
(I'm using jetty 6.1.2)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是确定线程池资源是否不足的阈值(如果排队连接数 > lowThreads),这将导致 Jetty 将 lowResourceMaxIdleTime 应用为 套接字 SO 超时
It's a threshold to determine whether the thread pool is low on resources (if queued connections > lowThreads) which will cause Jetty to apply lowResourceMaxIdleTime as socket SO timeout