对于该模型的一个关键问题是增加工作线程数会加剧对工作队列的争用(如图3所示)。
A key problem with this model is that increasing the number of worker threads increases the contention on the work queue (this is shown in Figure 3).
当并发数增加到超过该值时,由于线程争用CPU时间,所以事务响应时间将增加,因而实际上并未带来任何吞吐量方面的改进。
Increasing the concurrency beyond this value will increase the transaction response time as threads compete for CPU time, and not actually yield any throughput improvement.
吞吐量问题通常是由处理请求期间因为争用资源(CPU、内存、硬盘、线程池、连接池等)而导致的等待时间增加所引起的。
Throughput issues are generally caused by increased wait time during request processing due to contention of resources (CPU, memory, disk, thread pool, connection pool, etc.).
应用推荐