yaws_log消息计数继续增长

时间:2016-12-12 03:53:07

标签: erlang yaws

我在生产环境中的应用程序中嵌入了YAWS,并且我发现yaws_log消息计数继续增长(从2016年12月8日起)。 messages

观察者显示yaws_log进程内存大小为2326160312,消息计数为799501 observer

localhost:8081.access文件大小为2.5Mb,最后一次登录时间为08 / Dec / 2016:11:14:26,但今天是2016年12月12日。

我也检查了磁盘,但它没有满。

更新

我使用的是YAWS 2.0.4和Erlang / OTP 19.1

以下是yaws_log过程中的部分消息

Pid = whereis(yaws_log).
erlang:process_info(Pid, messages).
[{'$gen_cast',
     {"localhost:8081",access,
      {file_descriptor,prim_file,{#Port<0.1769762>,21}},
      {{127,0,0,1},
       {http_request,'GET',
           {abs_path,
               "/f/169bfcd4-cca5-472a-bda2-fff7f608eebc.jpg?type=4"},
           {1,1}},
       {headers,"close",undefined,"larzio.maxkit.com.tw:443",
           undefined,undefined,undefined,undefined,undefined,
           undefined,undefined,undefined,undefined,[],undefined,
           undefined,undefined,...},
       {outh,200,true,false,false,decide,191109,0,
           "Connection: close\r\n",
           ["Server: ","Yaws 2.0.4","\r\n"],
           undefined,undefined,undefined,
           ["Date: ",[...]|...],
           undefined,undefined,...},
       3515}}},
 {'$gen_cast',
     {"localhost:8081",access,
      {file_descriptor,prim_file,{#Port<0.1769762>,21}},
      {{127,0,0,1},
       {http_request,'OPTIONS','*',{1,0}},
       {headers,undefined,undefined,undefined,undefined,undefined,
           undefined,undefined,undefined,undefined,undefined,
           undefined,undefined,[],undefined,undefined,...},
       {outh,200,false,false,false,identity,0,0,undefined,
           ["Server: ","Yaws 2.0.4","\r\n"],
           undefined,undefined,undefined,
           [[...]|...],
           [...],...},
       74}}},
 {'$gen_cast',
     {"localhost:8081",access,
      {file_descriptor,prim_file,{#Port<0.1769762>,21}},
      {{127,0,0,1},
       {http_request,'GET',
           {abs_path,
               "/f/169bfcd4-cca5-472a-bda2-fff7f608eebc.jpg?type=3"},
           {1,1}},
       {headers,"close",undefined,"larzio.maxkit.com.tw:443",
           undefined,undefined,undefined,undefined,undefined,
           undefined,undefined,undefined,undefined,[],undefined,...},
       {outh,200,true,false,false,decide,13159,0,
           "Connection: close\r\n",
           ["Server: ","Yaws 2.0.4","\r\n"],
           undefined,undefined,undefined,
           [...],...},
       3450}}},
 {'$gen_cast',
     {"localhost:8081",access,
      {file_descriptor,prim_file,{#Port<0.1769762>,21}},
      {{127,0,0,1},
       {http_request,'OPTIONS','*',{1,0}},
       {headers,undefined,undefined,undefined,undefined,undefined,
           undefined,undefined,undefined,undefined,undefined,
           undefined,undefined,[],...},
       {outh,200,false,false,false,identity,0,0,undefined,
           ["Server: ","Yaws 2.0.4",[...]],
           undefined,undefined,undefined,...},
       72}}},
 {'$gen_cast',
     {"localhost:8081",access,
      {file_descriptor,prim_file,{#Port<0.1769762>,21}},
      {{127,0,0,1},
       {http_request,'OPTIONS','*',{1,0}},
       {headers,undefined,undefined,undefined,undefined,undefined,
           undefined,undefined,undefined,undefined,undefined,
           undefined,undefined,...},
       {outh,200,false,false,false,identity,0,0,undefined,
           ["Server: ",[...]|...],
           undefined,undefined,...},
       69}}},
 {'$gen_cast',
     {"localhost:8081",access,
      {file_descriptor,prim_file,{#Port<0.1769762>,21}},
      {{127,0,0,1},
       {http_request,'OPTIONS','*',{1,0}},
       {headers,undefined,undefined,undefined,undefined,undefined,
           undefined,undefined,undefined,undefined,undefined,
           undefined,...},
       {outh,200,false,false,false,identity,0,0,undefined,
           [[...]|...],
           undefined,...},
       80}}},
 secs3,
 {'$gen_cast',
     {"localhost:8081",access,
      {file_descriptor,prim_file,{#Port<0.1769762>,21}},
      {{127,0,0,1},
       {http_request,'OPTIONS','*',{1,0}},
       {headers,undefined,undefined,undefined,undefined,undefined,
           undefined,undefined,undefined,undefined,...},
       {outh,200,false,false,false,identity,0,0,undefined,...},
       82}}},
 {'$gen_cast',
     {"localhost:8081",access,
      {file_descriptor,prim_file,{#Port<0.1769762>,21}},
      {{127,0,0,1},
       {http_request,'OPTIONS','*',{1,0}},
       {headers,undefined,undefined,undefined,undefined,undefined,
           undefined,undefined,undefined,...},
       {outh,200,false,false,false,identity,0,0,...},
       71}}},
 {'$gen_cast',
     {"localhost:8081",access,
      {file_descriptor,prim_file,{#Port<0.1769762>,21}},
      {{127,0,0,1},
       {http_request,'OPTIONS','*',{1,0}},
       {headers,undefined,undefined,undefined,undefined,undefined,
           undefined,undefined,...},
       {outh,200,false,false,false,identity,0,...},
       87}}},
 {'$gen_cast',
     {"localhost:8081",access,
      {file_descriptor,prim_file,{#Port<0.1769762>,21}},
      {{127,0,0,1},
       {http_request,'OPTIONS','*',{1,0}},
       {headers,undefined,undefined,undefined,undefined,undefined,
           undefined,...},
       {outh,200,false,false,false,identity,...},
       71}}},
 {'$gen_cast',
     {"localhost:8081",access,
      {file_descriptor,prim_file,{#Port<0.1769762>,21}},
      {{127,0,0,1},
       {http_request,'OPTIONS','*',{1,0}},
       {headers,undefined,undefined,undefined,undefined,undefined,...},
       {outh,200,false,false,false,...},
       73}}},
 {'$gen_cast',
     {"localhost:8081",access,
      {file_descriptor,prim_file,{#Port<0.1769762>,21}},
      {{127,0,0,1},
       {http_request,'OPTIONS','*',{1,0}},
       {headers,undefined,undefined,undefined,undefined,...},
       {outh,200,false,false,...},
       72}}},
 secs3,
 {'$gen_cast',
     {"localhost:8081",access,
      {file_descriptor,prim_file,{#Port<0.1769762>,21}},
      {{127,0,0,1},
       {http_request,'OPTIONS','*',{...}},
       {headers,undefined,undefined,...},
       {outh,200,...},
       71}}},
 {'$gen_cast',
     {"localhost:8081",access,
      {file_descriptor,prim_file,{#Port<0.1769762>,21}},
      {{127,0,0,1},
       {http_request,'POST',{...},...},
       {headers,[...],...},
       {outh,...},
       1743}}},
 {'$gen_cast',
     {"localhost:8081",access,
      {file_descriptor,prim_file,{#Port<0.1769762>,21}},
      {{127,0,0,...},
       {http_request,'OPTIONS',...},
       {headers,...},
       {...},...}}},
 {'$gen_cast',
     {"localhost:8081",access,
      {file_descriptor,prim_file,{#Port<0.1769762>,...}},
      {{127,0,...},{http_request,...},{...},...}}},
 {'$gen_cast',
     {"localhost:8081",access,
      {file_descriptor,prim_file,{...}},
      {{127,...},{...},...}}},
 {'$gen_cast',
     {"localhost:8081",access,
      {file_descriptor,prim_file,...},
      {{...},...}}},
 {'$gen_cast',
     {"localhost:8081",access,{file_descriptor,...},{...}}},
 {'$gen_cast',{"localhost:8081",access,{...},...}},
 {'$gen_cast',{"localhost:8081",access,...}},
 secs3,
 {'$gen_cast',{...}},
 {'$gen_cast',...},
 {...}|...]}

0 个答案:

没有答案