php.log达到15GB

时间:2016-05-27 08:31:11

标签: php ubuntu logging nginx opcache

我在我的nginx日志中找到了一个名为php.log的文件,其中重复了这个内容

Usage: php5 [options] [-f] <file> [--] [args...]
   php5 [options] -r <code> [--] [args...]
   php5 [options] [-B <begin_code>] -R <code> [-E <end_code>] [--] [args...]
   php5 [options] [-B <begin_code>] -F <file> [-E <end_code>] [--] [args...]
   php5 [options] -S <addr>:<port> [-t docroot]
   php5 [options] -- [args...]
   php5 [options] -a

  -a               Run interactively
  -c <path>|<file> Look for php.ini file in this directory
  -n               No php.ini file will be used
  -d foo[=bar]     Define INI entry foo with value 'bar'
  -e               Generate extended information for debugger/profiler
  -f <file>        Parse and execute <file>.
  -h               This help
  -i               PHP information
  -l               Syntax check only (lint)
  -m               Show compiled in modules
  -r <code>        Run PHP <code> without using script tags <?..?>
  -B <begin_code>  Run PHP <begin_code> before processing input lines
  -R <code>        Run PHP <code> for every input line
  -F <file>        Parse and execute <file> for every input line
  -E <end_code>    Run PHP <end_code> after processing all input lines
  -H               Hide any passed arguments from external tools.
  -S <addr>:<port> Run with built-in web server.
  -t <docroot>     Specify document root <docroot> for built-in web server.
  -s               Output HTML syntax highlighted source.
  -v               Version number
  -w               Output source with stripped comments and whitespace.
  -z <file>        Load Zend extension <file>.

  args...          Arguments passed to script. Use -- args when first argument
                   starts with - or script is read from stdin

  --ini            Show configuration file names

  --rf <name>      Show information about function <name>.
  --rc <name>      Show information about class <name>.
  --re <name>      Show information about extension <name>.
  --rz <name>      Show information about Zend extension <name>.
  --ri <name>      Show configuration for extension <name>.

最高可达15GB。它总是被创建而不是我删除它。 lsof php.log显示:

COMMAND     PID                USER   FD   TYPE DEVICE SIZE/OFF    NODE NAME
php-loop.  1331 opcache_kiteblue_it    1w   REG  202,1 60204481 1179685 php.log

使用ps aux | grep php-loop显示:

1002      1331  0.0  0.0  26092   380 ?        S     2015 108:49 /usr/bin/perl /usr/bin/php-loop.pl /usr/bin/php5 -b /var/php-nginx/142902709323098.sock/socket

php-loop的内容:http://pastebin.com/Evk3Hvxe

Ubuntu 12.04.5 LTS。我有nginx和ngx_pagespeed,只有一个带有wordpress的网站和一些像W3 total cache这样的插件用于缓存。

我预感错误来自opcache - ngx_pagespeed

你可以给我一些帮助吗? 我受到攻击吗? 我该怎么办?

0 个答案:

没有答案