风之翼灵 发表于 2012-4-24 19:22:05

军哥,我的VPS怎么一会就502或者504错误

军哥,我的VPS怎么一会就502或者504错误,我用的是DS的VPS,是不是他们的母机有甚么问题。

正常5-10分钟,速度就会非常慢,然后出现502或者504错误,重启以后还是这样。

开始用0.8的这样,现在换0.9还是这样。。。


2012/04/24 16:38:32 15974#0: *3 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: xxxxx, server: xxxxxxx, request: "GET /p.php?act=rt&callback=jQuery1703708110181170465_1335256668377&_=1335256715448 HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "xxxxxxx", referrer: "http://xxxxxxx/p.php"
2012/04/24 16:39:56 15974#0: *3 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: xxxxx, server: xxxxxxx, request: "GET /p.php?act=rt&callback=jQuery1709650510834852487_1335256783635&_=1335256798663 HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "xxxxxxx", referrer: "http://xxxxxxx/p.php"
2012/04/24 16:39:57 15974#0: *2 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: xxxxx, server: xxxxxxx, request: "GET /p.php?act=rt&callback=jQuery1709650510834852487_1335256783636&_=1335256799676 HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "xxxxxxx", referrer: "http://xxxxxxx/p.php"
2012/04/24 16:44:45 15974#0: *435 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory) while connecting to upstream, client: xxxxx, server: xxxxxxx, request: "GET /p.php?act=rt&callback=jQuery17016214751094173962_1335256819613&_=1335257088383 HTTP/1.1", upstream: "fastcgi://unix:/tmp/php-cgi.sock:", host: "xxxxxxx", referrer: "http://xxxxxxx/p.php"




而且CPU基本被PHP用完了PID USER      PRNIVIRTRESSHR S %CPU %MEM    TIME+COMMAND
3572 www       25   0 4786026m 6376 R 45.61.816:19.02 php-cgi
3569 www       25   0 4953628m 6532 R 43.31.912:16.49 php-cgi
3570 www       22   0 4626425m 6472 R 30.01.720:11.91 php-cgi
3571 www       25   0 4811227m 6400 R 30.01.810:45.69 php-cgi
7682 www       25   0 4774426m 6120 R 29.01.7   3:08.58 php-cgi
    1 root      15   02156672576 S0.00.0   0:00.19 init
1381 root      15   01812568476 S0.00.0   0:00.01 syslogd


[ 本帖最后由 风之翼灵 于 2012-4-24 20:01 编辑 ]

风之翼灵 发表于 2012-4-24 20:16:27

CPU到100%,网站就504,502了。。。。这个php-cgi,到底是LNMP的问题,还是VPS的问题?

1 124.115.0.138
      1 124.115.0.28
      1 124.115.10.192
      1 124.115.5.53
      1 220.181.108.93
      1 36.2.107.252
      1 66.249.67.182
      1 Address
      1 servers)
      2
      2 207.46.204.181
      3 4.2.2.1
      3 65.52.109.147
   11 1.202.219.5

看样子也没有被攻击啊。

licess 发表于 2012-4-24 21:16:41

unix:/tmp/php-cgi.sock failed (2: No such file or directory)

这不有提示吗,php-cgi挂掉了,你可以再顺着日志找找应该会有为什么挂掉的

风之翼灵 发表于 2012-4-24 21:38:28

这个查不到额。。。一打开PHP,CPU马上就到100%

关了PHP,一切就都正常了
页: [1]
查看完整版本: 军哥,我的VPS怎么一会就502或者504错误