Add and delete swap temporary files

Source: Internet
Author: User
Add and delete swap temporary files. just deal with swap depletion. temporarily add a swap file creation method ddif/dev/zeroof/tmp/swap_tempbs1024count500000 to create a M file www.2cto.com and then activate it. this sw...
Add and delete swap temporary files. just solved the swap depletion problem. temporarily added a swap file creation method dd if =/dev/zero of =/tmp/swap_temp bs = 1024 count = 500000 create a M file www.2cto.com
Then activate the swap file: mkswap/tmp/swap_temp swapon/tmp/swap_temp check the result swapon-s www.2cto.com. after confirming that swap has been added successfully, check if all 1G swap is exhausted. ps. fpm is a bit better.
Even more than 54 php-fpm master processes use the same sock to contact the project.
After the responsible person temporarily closes the service, switch to the tcp mode. the memory is about GB more. Next, take the swap file and get it. swapoff/tmp/swap_tempswapon-s. confirm that swap is disabled and delete swap_temp file O.
 

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.