VPS侦探论坛

 找回密码
 注册
查看: 4429|回复: 7

lnmp php访问慢 html访问正常

[复制链接]
发表于 2017-5-4 17:34:34 | 显示全部楼层 |阅读模式

如题
html访问正常http://www.xxx.cn/index.html


php访问极慢 有时候有多次刷新
http://www.xxx.cn/index.php

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2017-5-4 17:35:55 | 显示全部楼层


整个服务器的网站都是这样 ,不是这一个网站是这样,dedecms  还有discusz 都是一样
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2017-5-4 21:49:22 | 显示全部楼层

看看系统cpu占用情况,内存使用情况
开php慢日志看看
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2017-5-5 08:41:04 | 显示全部楼层



[05-May-2017 08:33:07]  [pool www] pid 7492
script_filename = /home/data/www/guazhi/m/data.php
[0x00007f75099da020] file_get_contents() /home/data/www/guazhi/m/data.php:8

[05-May-2017 08:33:17]  [pool www] pid 7499
script_filename = /home/data/www/guazhi/m/data.php
[0x00007f75099da020] file_get_contents() /home/data/www/guazhi/m/data.php:8

[05-May-2017 08:36:37]  [pool www] pid 7489
script_filename = /home/data/www/guazhi/m/data.php
[0x00007f75099da020] file_get_contents() /home/data/www/guazhi/m/data.php:8

[05-May-2017 08:36:37]  [pool www] pid 7502
script_filename = /home/data/www/guazhi/m/data.php
[0x00007f75099da1b0] file_get_contents() /home/data/www/guazhi/m/data.php:8

[05-May-2017 08:36:47]  [pool www] pid 7490
script_filename = /home/data/www/cnshenzheng/data.php
[0x00007f75099da128] file_get_contents() /home/data/www/cnshenzheng/data.php:8

[05-May-2017 08:36:47]  [pool www] pid 7492
script_filename = /home/data/www/cnshenzheng/data.php
[0x00007f75099da128] file_get_contents() /home/data/www/cnshenzheng/data.php:8

[05-May-2017 08:36:57]  [pool www] pid 7504
script_filename = /home/data/www/cnshenzheng/data.php
[0x00007f75099da070] file_get_contents() /home/data/www/cnshenzheng/data.php:8

[05-May-2017 08:36:57]  [pool www] pid 7803
script_filename = /home/data/www/cnshenzheng/data.php
[0x00007f75099da2e0] file_get_contents() /home/data/www/cnshenzheng/data.php:8

[05-May-2017 08:37:24]  [pool www] pid 7826
script_filename = /home/data/www/guazhi/m/data.php
[0x00007f75099da018] file_get_contents() /home/data/www/guazhi/m/data.php:8




这是慢日志,是这样吗  可以看出来问题吗?
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2017-5-5 08:44:04 | 显示全部楼层

这是探针

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x

军哥运维代购:http://shop63846532.taobao.com/

发表于 2017-5-5 09:06:17 | 显示全部楼层

回复 4# 的帖子


慢日志看是提示文件file_get_contents读取文件可能较慢

其他内存和cpu占用看都正常
 楼主| 发表于 2017-5-5 09:18:15 | 显示全部楼层

[05-May-2017 09:09:34]  [pool www] pid 7489
script_filename = /home/data/www/zj/yqj_zj/task_do.php
[0x00007f75099e14d0] mysql_query() /home/data/www/zj/include/dedesql.class.php:317
[0x00007f75099de028] Execute() /home/data/www/zj/include/arc.listview.class.php:826
[0x00007f75099dd1f0] GetArcList() /home/data/www/zj/include/arc.listview.class.php:653
[0x00007f75099dbdd8] ParseDMFields() /home/data/www/zj/include/arc.listview.class.php:330
[0x00007f75099da680] MakeHtml() /home/data/www/zj/yqj_zj/task_do.php:159




那file_get_contents请问 这种咋办啊,实在是不会 请指教............
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-5-5 13:28:29 | 显示全部楼层

回复 7# 的帖子


这个我们没办法帮你弄,慢日志只是帮你找出可能存在的问题,需要你自己去调整代码的问题
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-27 05:59 , Processed in 0.027525 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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