netty - How can I increase server SSL performance -
i've enabled ssl on proxy server , found performance has dropped around 17k requests per second 5k request per second. followed code in netty's secure chat example , don't think i've done differently.
i've written dummy server see if i've made mistakes on proxy. running dummy ssl server in normal http mode capable of around 50k request per second. when enable ssl on dummy server drops 28k requests per second.
is there i'm doing wrong? there i'm missing?
i'm using jdk 6 compile code, running on jdk 7u4. i'm using netty-3.5.0 well. i'm using zeusbench run test. test parameters are: zeusbench -n 10000 -c 100 -k -c rc4_sha "https:///"
source: http://pastebin.com/iahqr3zt
edit 1: i've run dummy server through jprofiler. sslcontext.createsslengine call in pipeline factory takes (on average) 55,005 microseconds (that average has been calculated 540 invocations of method).
the sslhandler.handshake call in channelconnected takes (on average) 46,284 microseconds (that average has been calculated 540 invocations of method).
i understand there isn't netty can call createsslengine, sslhandler.handshake tuned better? taking long generation of engine itself.
you try re-using ssl sessions existing connections, reduces ssl handshake , should give general boost.
Comments
Post a Comment