Re: Performance problem with NIO under high concurrency

2017-08-31 Thread Thuc Nguyen
As an experimentation, I started Tomcat with “-Dorg.apache.tomcat.util.net.NioSelectorShared=false”, and “selectorPool.maxSelectors” set to 1000, the same as the number of threads. This problem didn’t happen with that setting. Even with “selectorPool.maxSelectors” set to 1, it was noticeably sl

Re: Performance problem with NIO under high concurrency

2017-08-31 Thread Thuc Nguyen
Hi Chris, Thanks for the quick response. Yes, the clients were being throttled. These throttled requests were slow to start with and there was no noticeable difference in the download speed when the problem occurred. The smaller download started out OK. But after 10-15 successful serial reques

Re: Performance problem with NIO under high concurrency

2017-08-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Thuc, On 8/31/17 11:25 AM, Thuc Nguyen wrote: > We run JFrog Artifactory which is fronted by Tomcat 8.0.32. We > recently upgraded from Tomcat 7.0.56. Since the upgrade, > Artifactory occasionally slows to a crawl. Any chance of using the latest To

Performance problem with NIO under high concurrency

2017-08-31 Thread Thuc Nguyen
Hi, We run JFrog Artifactory which is fronted by Tomcat 8.0.32. We recently upgraded from Tomcat 7.0.56. Since the upgrade, Artifactory occasionally slows to a crawl. We could reproduce this problem by downloading a large (1GB) file concurrently from 500 different machines. However, to avoid e