This question was caused 开发者_如何学Goby a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 years ago.
Improve this questioni used this example for performance test
someone says that netty's performance is so fast. It can process 1,00,000+ concurrent request/sec (check the below links)
http://www.jboss.org/netty/performance/20090303-mheath.html
http://www.jboss.org/netty/performance/20090607-asalihefendic.html
but when i try with this example it's give me only 107 req/sec with 1000 concurrent request
ab -n 10000 -c 1000 http://localhost:8080/
Server Software:
Server Hostname: localhost
Server Port: 8080
Document Path: /
Document Length: 230 bytes
Concurrency Level: 1000
Time taken for tests: 92.784 seconds
Complete requests: 10000
Failed requests: 0
Write errors: 0
Total transferred: 2900000 bytes
HTML transferred: 2300000 bytes
Requests per second: 107.78 [#/sec] (mean)
Time per request: 9278.431 [ms] (mean)
Time per request: 9.278 [ms] (mean, across all concurrent requests)
Transfer rate: 30.52 [Kbytes/sec] received
give me suggestion where is the problem
Can someone one please share any web example or reference highlighting performance benchmark of netty.
You have zero dropped requests and I would benchmark using Siege and compare with other similar setup. Also what kind of system are you using? Probably you also need to increase file descriptor for this to work. Also you need to configure JVM before doing benchmark. Something along these lines:
-server -Xms2048m -Xmx2048m -XX:+UseParallelGC -XX:+AggressiveOpts -XX:+UseFastAccessorMethods
精彩评论