请查看Ubuntu 14.04中Apache(2.4.7)访问日志中接收请求时间的奇怪情况:
IP1 - - [14/Dec/2016:00:00:02 +0300] "GET /portal/get.php?filename=file1.mpg HTTP/1.1" 206 194292 "-" "Lavf53.32.100"
IP1 - - [14/Dec/2016:00:00:02 +0300] "GET /portal/get.php?filename=file1.mpg HTTP/1.1" 206 140716 "-" "Lavf53.32.100"
IP1 - - [14/Dec/2016:00:00:02 +0300] "GET /portal/get.php?filename=file1.mpg HTTP/1.1" 206 191396 "-" "Lavf53.32.100"
IP2 - - [13/Dec/2016:23:59:59 +0300] "GET /portal/get.php?filename=file2.mpg HTTP/1.1" 206 6010910 "-" "Lavf53.32.100"
IP2 - - [14/Dec/2016:00:00:03 +0300] "GET /portal/get.php?filename=file2.mpg HTTP/1.1" 206 189950 "-" "Lavf53.32.100"
IP2 - - [14/Dec/2016:00:00:03 +0300] "GET /portal/get.php?filename=file2.mpg HTTP/1.1" 206 191398 "-" "Lavf53.32.100"
IP2 - - [14/Dec/2016:00:00:03 +0300] "GET /portal/get.php?filename=file2.mpg HTTP/1.1" 206 237734 "-" "Lavf53.32.100"
IP2 - - [14/Dec/2016:00:00:03 +0300] "GET /portal/get.php?filename=file2.mpg HTTP/1.1" 206 194294 "-" "Lavf53.32.100"
IP3 - - [13/Dec/2016:23:59:34 +0300] "GET /portal/get.php?filename=file3.mpg HTTP/1.1" 206 5374262 "-" "Lavf53.32.100"
IP1 - - [14/Dec/2016:00:00:02 +0300] "GET /portal/get.php?filename=file1.mpg HTTP/1.1" 206 5465012 "-" "Lavf53.32.100"
IP1 - - [14/Dec/2016:00:00:06 +0300] "GET /portal/get.php?filename=file1.mpg HTTP/1.1" 206 184156 "-" "Lavf53.32.100"
IP1 - - [14/Dec/2016:00:00:06 +0300] "GET /portal/get.php?filename=file1.mpg HTTP/1.1" 206 121892 "-" "Lavf53.32.100"
知道为什么时间没有按升序排列吗?
这是 Apache 的问题还是我的服务器出了问题,或者不需要担心这个问题?
我还需要在服务器上检查什么?
答案1
日志中记录的时间是最初收到请求的时间。但是,直到请求完成时才会实际写入日志条目。因此,当某些请求需要更多时间才能完成时,请求可能会出现顺序混乱的情况。