为什么有多个tomcat工人?
jk_connector 工作线程基本上是一个等待处理来自 Web 服务器的请求的 tomcat 实例。
apache 文档告诉你,如果你有多个应用程序,你应该有多个工作人员,但并没有真正解释原因。
每个 Web 应用程序配备一名工作人员与多个应用程序配备一名工作人员相比有何优缺点?
a jk_connector worker is basically a tomcat instance waiting to process requests from a web server.
The apache docs tell you that you should have multiple workers if you have multiple apps, but doesnt really explain why.
What are the pros/cons of having a worker per web app vs 1 worker for multiple apps?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
处理器亲和力之一。如果工作集绑定到一个执行单元,则可以更有效地利用其内置缓存。共享空间的应用程序越多,争用就越多。
当今大多数系统都基于多个 CPU 核心,其中线程可以在每个核心上独立执行。这意味着如果有更多线程(例如,1 个线程/CPU),繁忙的服务器可以更好地利用系统资源,无论是多核(SMP)和多线程(SMT)系统。服务器的一种常见方法是提供一个工作进程/线程池,可以使用和重用它来服务多个同时请求。
Processor affinity for one. If the workset is bound to one executional unit its built in cache be utilized more effectively. The more applications to share the space the more contention.
Most systems today are based on multiple cpu cores where threads can execute independently on each core. This means that a busy server can better utilize system resources if there are more threads (e.g., 1 thread/cpu), both for multicore (SMP) and multithreading (SMT) systems. A common way for servers is to provide a process/thread pool of workers which can be used and reused to serve multiple simultaneous requests.