VPS侦探论坛
标题:
lnmp php访问慢 html访问正常
[打印本页]
作者:
lwl416500
时间:
2017-5-4 17:34
标题:
lnmp php访问慢 html访问正常
如题
html访问正常http://www.xxx.cn/index.html
php访问极慢 有时候有多次刷新
http://www.xxx.cn/index.php
作者:
lwl416500
时间:
2017-5-4 17:35
整个服务器的网站都是这样 ,不是这一个网站是这样,dedecms 还有discusz 都是一样
作者:
licess
时间:
2017-5-4 21:49
看看系统cpu占用情况,内存使用情况
开php慢日志看看
作者:
lwl416500
时间:
2017-5-5 08:41
[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
这是慢日志,是这样吗 可以看出来问题吗?
作者:
lwl416500
时间:
2017-5-5 08:44
这是探针
作者:
licess
时间:
2017-5-5 09:06
标题:
回复 4# 的帖子
慢日志看是提示文件file_get_contents读取文件可能较慢
其他内存和cpu占用看都正常
作者:
lwl416500
时间:
2017-5-5 09:18
[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请问 这种咋办啊,实在是不会 请指教............
作者:
licess
时间:
2017-5-5 13:28
标题:
回复 7# 的帖子
这个我们没办法帮你弄,慢日志只是帮你找出可能存在的问题,需要你自己去调整代码的问题
欢迎光临 VPS侦探论坛 (https://bbs.lnmp.com/)
Powered by Discuz! X3.4