我正在运行CloudLinux 7.我不断收到LFD通知,如下所示:
Time: Thu Sep 1 16:29:12 2016 -0400
Account: xxx
Resource: Virtual Memory Size
Exceeded: 1226 > 256 (MB)
Executable: /opt/cpanel/ea-php70/root/usr/bin/lsphp.cagefs
Command Line: lsphp
PID: 102817 (Parent PID:102817)
Killed: No
我使用代码sleep(30);
创建了一个test.php,并使用pmap
来跟踪其内存使用情况。以下是输出(截断):
Address Kbytes RSS Dirty Mode Mapping
00007f68183e7000 1048576 132 132 rw-s- zero (deleted)
00007f68583e7000 48 0 0 r-x-- libnss_files-2.17.so
00007f68583f3000 2044 0 0 ----- libnss_files-2.17.so
00007f68585f2000 4 4 4 r---- libnss_files-2.17.so
00007f68585f3000 4 4 4 rw--- libnss_files-2.17.so
00007f68585f4000 24 0 0 rw--- [ anon ]
00007f68585fa000 28 20 0 r-x-- xmlreader.so
00007f6858601000 2044 0 0 ----- xmlreader.so
---------------- ------- ------- -------
total kB 1256296 9228 6340
看起来第一个订单项zero (deleted)
正在使用最多的RAM。环顾四周,这是共享记忆......但为什么它如此之高?我降低了多少?