我正在使用Logstash通过Gelf插件将日志文件发送到Graylog2。
我的配置相当复杂,有很多grok过滤器。
当我的系统处于负载状态时,消息会排队等待DAYS。
我附上了“top”的输出。
top - 16:34:11 up 45 days, 22:56, 3 users, load average: 5.19, 5.74, 10.87 Threads: 81 total, 4 running, 77 sleeping, 0 stopped, 0 zombie %Cpu(s): 13.9 us, 0.4 sy, 84.9 ni, 0.3 id, 0.0 wa, 0.0 hi, 0.4 si, 0.0 st KiB Mem : 15398116 total, 173912 free, 11405412 used, 3818792 buff/cache KiB Swap: 0 total, 0 free, 0 used. 3417404 avail Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 27886 logstash 39 19 4718860 492004 10596 R 86.7 3.2 12850:42 [main]>worker0 27888 logstash 39 19 4718860 492004 10596 R 86.7 3.2 12853:13 [main]>worker2 27887 logstash 39 19 4718860 492004 10596 R 81.1 3.2 12849:42 [main]>worker1 27889 logstash 39 19 4718860 492004 10596 R 79.7 3.2 12857:18 [main]>worker3 27894 logstash 39 19 4718860 492004 10596 S 2.3 3.2 68:36.41 [main]<file 27890 logstash 39 19 4718860 492004 10596 S 1.0 3.2 64:45.88 [main]<file 27742 logstash 39 19 4718860 492004 10596 S 0.3 3.2 19:17.18 java 27743 logstash 39 19 4718860 492004 10596 S 0.3 3.2 19:23.35 java 27744 logstash 39 19 4718860 492004 10596 S 0.3 3.2 19:23.70 java 27745 logstash 39 19 4718860 492004 10596 S 0.3 3.2 19:27.28 java 27747 logstash 39 19 4718860 492004 10596 S 0.3 3.2 9:10.55 java 27757 logstash 39 19 4718860 492004 10596 S 0.3 3.2 11:35.33 java 27892 logstash 39 19 4718860 492004 10596 S 0.3 3.2 18:20.70 [main]<file 27895 logstash 39 19 4718860 492004 10596 S 0.3 3.2 11:16.33 [main]-pipeline 27706 logstash 39 19 4718860 492004 10596 S 0.0 3.2 0:00.00 java 27738 logstash 39 19 4718860 492004 10596 S 0.0 3.2 2:35.57 LogStash::Runne 27746 logstash 39 19 4718860 492004 10596 S 0.0 3.2 80:24.30 java 27748 logstash 39 19 4718860 492004 10596 S 0.0 3.2 0:11.65 java 27749 logstash 39 19 4718860 492004 10596 S 0.0 3.2 0:05.61 java 27751 logstash 39 19 4718860 492004 10596 S 0.0 3.2 0:00.17 java ...