Website access is very slow and sometimes cannot be accessed. how can this problem be solved?

Source: Internet
Author: User
Website access is very slow. sometimes the website cannot be accessed. I don't know if it is a program problem or a configuration problem. this is the server memory usage suspicion. it may be related to this solution. & nbsp; totalusedfreesharedbuffersca website access is particularly slow, sometimes it cannot be accessed.
I don't know if it's a program problem or a configuration problem.
This is the server memory usage suspicion. it may be related to this. how can this problem be solved?
Total used free shared buffers cached
Mem: 4041 3957 84 0 193 3494
-/+ Buffers/cache: 269 3772
Swap: 5023 0 5023


------ Solution --------------------
I used the sync command to clear the buffer and cached. you can try it.

However, when the memory is used up, it may also be because mysql is too large to be set, so every time I free about MB
------ Solution --------------------
Use xhprof, xdebug, and other tools to see how the loads of the program are distributed .. then determine the solution.
------ Solution --------------------
Make sure it is not a program problem, and then check the hardware.
------ Solution --------------------
From the free-m provided by LZ, the memory usage of the machine is very normal... if sync is forced, it will be slower ....

Start with web service logs...
------ Solution --------------------
Well, we recommend that you check apache logs. if the memory is not used for swap, you don't have to worry about memory usage.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.