Lack of Free swap space on Zabbix server

Source: Internet
Author: User



Zabbix Server Report Lack of Free swap space on Zabbix server



Zabbxi swap is not available, but memory is not used very high, so release some memory try:





Echo 1 >/proc/sys/vm/drop_caches


After a while ...




OK, swap or not, it seems, can only add swap, and the machine is SSD disk, otherwise, ordinary disk swap you understand



1. Create a swap file directory





Mkdir/home/sawpdev


2. Create swap files





DD If=/dev/zero Of=/home/sawpdev/swap bs=1024 count=8192000


3. Generate swap





Mkswap/home/sawpdev/swap


4. Start swap





Swapon/home/sawpdev/swap


5. Increase the boot mount





Vim/etc/fstab/home/sawpdev/swap swap swap defaults 0 0


Check the status again:



This article is from the "take a deep Breath again" blog, make sure to keep this source http://ckl893.blog.51cto.com/8827818/1891092



Lack of Free swap space on Zabbix server


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.