VPS侦探论坛

 找回密码
 注册
查看: 6027|回复: 3

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

[复制链接]
发表于 2012-4-24 19:22:05 | 显示全部楼层 |阅读模式

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

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

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

2012/04/24 16:38:32 [crit] 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 [crit] 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 [crit] 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 [crit] 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      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
3572 www       25   0 47860  26m 6376 R 45.6  1.8  16:19.02 php-cgi
3569 www       25   0 49536  28m 6532 R 43.3  1.9  12:16.49 php-cgi
3570 www       22   0 46264  25m 6472 R 30.0  1.7  20:11.91 php-cgi
3571 www       25   0 48112  27m 6400 R 30.0  1.8  10:45.69 php-cgi
7682 www       25   0 47744  26m 6120 R 29.0  1.7   3:08.58 php-cgi
    1 root      15   0  2156  672  576 S  0.0  0.0   0:00.19 init
1381 root      15   0  1812  568  476 S  0.0  0.0   0:00.01 syslogd

[ 本帖最后由 风之翼灵 于 2012-4-24 20:01 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 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

看样子也没有被攻击啊。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2012-4-24 21:16:41 | 显示全部楼层

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

这不有提示吗,php-cgi挂掉了,你可以再顺着日志找找应该会有为什么挂掉的
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2012-4-24 21:38:28 | 显示全部楼层



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

关了PHP,一切就都正常了
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-22 21:35 , Processed in 0.025617 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表