网站访问特别慢,有时候还访问不了,该如何处理

WBOY
Release: 2016-06-13 13:49:46
Original
979 people have browsed it

网站访问特别慢,有时候还访问不了
不知道是不是程序问题还是配置问题
这个是服务器内存使用 怀疑可能跟这个有关 求解决办法
  total used free shared buffers cached
Mem: 4041 3957 84 0 193 3494
-/+ buffers/cache: 269 3772
Swap: 5023 0 5023


------解决方案--------------------
我之前是用sync命令清除buffer和cached,你可以试试

但内存被用完也可能是mysql等设置太大,我每次也就free 100m左右
------解决方案--------------------
用xhprof, xdebug等工具看看程序的负载是怎么分布的..然后再确定方案
------解决方案--------------------
先确定不是程序问题,再看硬件
------解决方案--------------------
从LZ给出的free -m来看,该机器的内存占用非常正常....如果强制sync的话,会更慢....

先考虑从web service的日志入手吧...
------解决方案--------------------
恩,推荐从apache 日志开始排查,如果内存不是用到交换的部分了基本不用担心是内存占用问题。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!