Apache服务器

时间:2018-05-22 21:37:18

标签: java apache rest web-services

我在某些请求中遇到了这个问题。用户的所有第一次呼叫(或经过一段时间后)最多需要60秒才能完成。之后需要几毫秒。如果我在互联网浏览器或SOAP UI上调用它并不重要,它始终是相同的。我在Apache上运行java应用程序。 我用fiddler运行它来查看呼叫消耗时间最多的地方,看起来它介于服务器获取请求之间,并且每次需要61秒时就开始回答。 Fiddler还显示SSL握手在两种情况下花费毫秒

我不确定在哪里可以看。如果有人能说出一些亮点,我们将不胜感激。

第一次请求(需要1分01秒)

Request Count:   1
Bytes Sent:      683        (headers:683; body:0)
Bytes Received:  846        (headers:347; body:499)

ACTUAL PERFORMANCE
--------------

This traffic was captured on Friday, May 18, 2018.

ClientConnected:    16:21:17.244
ClientBeginRequest: 16:21:17.465
GotRequestHeaders:  16:21:17.465
ClientDoneRequest:  16:21:17.465
Determine Gateway:  0ms
DNS Lookup:         0ms
TCP/IP Connect: 0ms
HTTPS Handshake:    0ms
ServerConnected:    16:21:17.275
FiddlerBeginRequest:    16:21:17.466
ServerGotRequest:   16:21:17.466
ServerBeginResponse:    16:22:18.597
GotResponseHeaders: 16:22:18.597
ServerDoneResponse: 16:22:18.599
ClientBeginResponse:    16:22:18.599
ClientDoneResponse: 16:22:18.599

    Overall Elapsed:    0:01:01.133

RESPONSE BYTES (by Content-Type)
--------------
application/json: 499
       ~headers~: 347

后续请求(需要0.120分钟)

Request Count:   1
Bytes Sent:      683        (headers:683; body:0)
Bytes Received:  846        (headers:347; body:499)

ACTUAL PERFORMANCE
--------------

This traffic was captured on Friday, May 18, 2018.

ClientConnected:    16:22:38.582
ClientBeginRequest: 16:22:38.607
GotRequestHeaders:  16:22:38.607
ClientDoneRequest:  16:22:38.607
Determine Gateway:  0ms
DNS Lookup:         0ms
TCP/IP Connect: 0ms
HTTPS Handshake:    0ms
ServerConnected:    16:22:38.589
FiddlerBeginRequest:    16:22:38.607
ServerGotRequest:   16:22:38.607
ServerBeginResponse:    16:22:38.726
GotResponseHeaders: 16:22:38.726
ServerDoneResponse: 16:22:38.727
ClientBeginResponse:    16:22:38.727
ClientDoneResponse: 16:22:38.727

    Overall Elapsed:    0:00:00.120

RESPONSE BYTES (by Content-Type)
--------------
application/json: 499
       ~headers~: 347

这是看起来用浏览器进行的另一次第一次调用的方式 Chrome Network Analysis

谢谢!

1 个答案:

答案 0 :(得分:0)

所以,我终于找到了关于LDAP的这篇文章 - > img

碰巧是我的情况。 将{{1}}添加到我的httpd.config解决了我的问题。