Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ssl performance  RSS feed

 
Thomas Rochon
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy !
Sorry for annoying you again, but this question is (hopefully)
a very simple one
How much slower is HTTPs compared to HTTP?
I'm stressing my JETTY server with several Post requests
and file uploads. In some cases HTTPs is up to 6 times slower
than HTTP. Especially if JETTY has to handle multiple client
requests at the same time. Is HTTPs that slow? Is this a fact
and that's life? Or is there a way I can increase the performance
on client and/or server side ?
Thanx in advance !
- Thomas -
 
Lewin Chan
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hej,
Always a few things that rattle around in my head, when thinking about http/https
Depending on jdk, this could be because of SecureRandom(), jdk1.3 new SecureRandom() appears to take about 6 seconds (regardless of cpu), it doesn't in jdk1.4, if jetty is using new SecureRandom(), or isn't configured with a random source...
SSLSession caching, turn this on if you can, this means you don't need re-negotiate the the handshake everytime (i.e. exchange certificates / ciphertext and decide on a encryption-alg).
Connection: Keep-alive would be an option, if a single client is sending multiple items of data (as it would occur on the same socket, thus obviating the need for a re-connection).
Lewin
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!