在Jetty中缓慢响应Https [英] Slow Https response in Jetty
问题描述
我正在使用带有jetty 8.1.1的servlet 3和一个亚马逊ec2机器上的SslContextFactory(m1-small)。
I'm using servlets 3 with jetty 8.1.1 and the SslContextFactory on an amazon ec2 machine (m1-small).
-
来自localhost(amazone机器)的第一个HTTPS请求大约是150毫秒,而另外的
请求似乎变得更快(低至~40毫秒),但没有接近
的HTTP响应时间只有20ms - 为什么?加密真的是
慢吗?
The first HTTPS request from localhost (of the amazone machine) is about 150ms and further requests seem to get faster (down to ~40ms) but not as close as to the HTTP response time of only 20ms - why? Is encryption really that slow?
此外,当从亚马逊云外部比较HTTPS和HTTP
时,差异变得更加严重: HTTPS请求至少400毫米
慢!?怎么可能?加密内容是否也更大?并且
如何调试它或使其更快?
Also when comparing HTTPS and HTTP from outside of the amazon cloud the difference gets even worse: HTTPS requests are at least 400ms slower!? How can that be? Is the encrypted content also bigger? And how can I debug it or make all faster?
更多信息:所有'测量'是通过 time curl http://mydomain.com/ping
进行的,不可科学地完成,但可以重现。中间还有一个ec2负载平衡器。我确定我配置错了或者我有很大的误解。请告诉我!
Some more informations: all 'measurements' are unscientificly done via time curl http://mydomain.com/ping
but are reproducable. Also there is an ec2 load balancer in between. I'm sure I've configured something wrong or there is a big misunderstanding from me. Let me know!
推荐答案
我需要了解如何启用SSL会话。为此,我创建了一个新问题,因为目前还不清楚如何在码头开启以及如何处理客户端一边
I need to find out how to enable SSL sessions. For this I've created a new question as it is unclear how to turn on in jetty and how to handle on the client side
这篇关于在Jetty中缓慢响应Https的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!