今天我的网站停止运行时,我遇到了一个问题。调用链接只是显示了一条神秘的信息Database connection error
, 在一台服务器上的所有网站上。重新启动时错误消失。
在试图找到问题的根源时,我检查了syslog(我使用的是Debian 7),发现了以下条目:
Jun 15 05:46:03 myserver suhosin[8368]: ALERT - script tried to increase memory_limit to 268435456 bytes which is above the allowed value (attacker \'myipx.y.z.a\', file \'/var/www/virtual/mylocation/htdocs/wp-content/plugins/wordfence/lib/wfUtils.php\', line 502)
Jun 15 05:46:21 myserver suhosin[8372]: ALERT - script tried to increase memory_limit to 268435456 bytes which is above the allowed value (attacker \'myipx.y.z.a\', file \'/var/www/virtual/mylocation/htdocs/wp-content/plugins/wordfence/lib/wfUtils.php\', line 502)
Jun 15 05:46:38 myserver suhosin[8368]: ALERT - script tried to increase memory_limit to 268435456 bytes which is above the allowed value (attacker \'myipx.y.z.a\', file \'/var/www/virtual/mylocation/htdocs/wp-content/plugins/wordfence/lib/wfUtils.php\', line 502)
Jun 15 05:46:54 myserver suhosin[8376]: ALERT - script tried to increase memory_limit to 268435456 bytes which is above the allowed value (attacker \'myipx.y.z.a\', file \'/var/www/virtual/mylocation/htdocs/wp-content/plugins/wordfence/lib/wfUtils.php\', line 502)
Jun 15 05:55:01 myserver /USR/SBIN/CRON[8508]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Jun 15 05:56:59 myserver suhosin[8514]: ALERT - script tried to increase memory_limit to 268435456 bytes which is above the allowed value (attacker \'myipx.y.z.a\', file \'/var/www/virtual/joel.co.in/kgimoa.com/htdocs/wp-content/plugins/wordfence/lib/wfUtils.php\', line 502)
Jun 15 05:57:18 myserver suhosin[8516]: ALERT - script tried to increase memory_limit to 268435456 bytes which is above the allowed value (attacker \'myipx.y.z.a\', file \'/var/www/virtual/joel.co.in/kgimoa.com/htdocs/wp-content/plugins/wordfence/lib/wfUtils.php\', line 502)
Jun 15 05:57:33 myserver suhosin[8514]: ALERT - script tried to increase memory_limit to 268435456 bytes which is above the allowed value (attacker \'myipx.y.z.a\', file \'/var/www/virtual/joel.co.in/kgimoa.com/htdocs/wp-content/plugins/wordfence/lib/wfUtils.php\', line 502)
错误会重复出现。
查看代码,第502行:
public static function iniSet($key, $val){
if(self::funcEnabled(\'ini_set\')){
@ini_set($key, $val);
}
}
这是因为我的一个插件/主题使用了过多的RAM吗?如何隔离和识别哪一个?除了逐个禁用每个插件并等待错误显示在syslog中之外,还有没有更快、更有针对性的方法?