调查来自 syslog@stock 的奇怪消息

调查来自 syslog@stock 的奇怪消息

我注意到,当我登录服务器时,有时会收到来自 syslog@stock 的垃圾邮件。在这台服务器上,我运行着一个用 Laravel 构建的网站和一个运行着超过 20 个活跃用户的 Teamspeak 3 服务器。

我收到的信息是

Message from syslogd@stock at Jul 25 17:42:13 ...
 t of memory [4188]

Message from syslogd@stock at Jul 25 17:42:13 ...
 t of memory [4194]

Message from syslogd@stock at Jul 25 17:42:14 ...
 t of memory [4202]

Message from syslogd@stock at Jul 25 17:42:14 ...
 t of memory [4208]

Message from syslogd@stock at Jul 25 17:42:15 ...
 t of memory [4214]

Message from syslogd@stock at Jul 25 17:42:15 ...
 t of memory [4224]

Message from syslogd@stock at Jul 25 17:42:15 ...
 t of memory [4233]

Message from syslogd@stock at Jul 25 17:42:16 ...
 t of memory [4241]

我不明白这些信息的含义。

运行 CentOS @ 32GB Intel(R) Xeon(R) CPU E3-1245 V2 @ 3.40GHz

free -m

             total       used       free     shared    buffers     cached
Mem:         32070      15338      16732          0        409       5386
-/+ buffers/cache:       9541      22528
Swap:         1021          0       1021

答案1

以下是我针对自己的情况发现的问题。ulimit -a可以识别virtual memory (kbytes, -v) 10485760。如果任何进程的虚拟内存达到或试图超出限制,它将广播问题中提到的问题。htop比更有帮助top

$ ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 1031979
max locked memory       (kbytes, -l) unlimited
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 10240
cpu time               (seconds, -t) unlimited
max user processes              (-u) 104
virtual memory          (kbytes, -v) 10485760
file locks                      (-x) unlimited

相关内容