المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : السي بانال CPanel حل مشكلة امتلاء مساحة WHM Swap Used 100%



Rise Company
10-01-2021, 22:47
السي بانال CPanel حل مشكلة امتلاء مساحة السواب Swap Used 100%
cPanel - Swap Used 100% - 100% of SWAP used, MySQL is cause
مشكلة امتلاء السواب Server Status Says Swap Used 92%
السي بانال WHM/CPanel تفريغ المساحة How to empty swap memory?
How to clear server's memory ? - HOW TO CLEAR SWAP CACHE
87% swap used but only 16% memory used - does it make sense?

https://www.rise.company/upload/uploads/161031168328941.png

المشكلة :

بعد مرور شهر على السيرفر تجد ان Swap Used 100% ويحدث بطىء فى الغالب
وهو عبارة عن رام اضافية بجانب الرام الاساسية تستغل فى حالة ان الرام الاساسية لا تكفى
موارد السيرفر لذلك تاخذ من رام الهارد مساحة تستخدم للكاش المؤقت.
Swap space is the disk space that is set aside for virtual memory. Is apache and named running in the server?

This means that you don't have enough memory on the system for everything that's running. Swap is extra memory that you can use when your allocation of physical memory (RAM) is used up. It's allocated on the hard disk so is much slower, and will seriously impact system performance. For this reason, you should have enough RAM that you don't need to use swap under normal operating conditions, it's really for those usage spikes that happen occasionally. (You don't say what kind of hosting you have but if you are sharing the system with other people then your swapping is bad for everyone and your host might start getting cross).

If your swap is at 100% then you have used up all your main memory (the RAM) and then used up all the swap too. After that the system can't allocate any more, which is why your site won't load. You need to either get a lot more RAM (sounds like you need what you have now, plus what you have in swap, plus some more) or seriously cut back on what you're running. CPanel uses a lot of memory, as does apache by default. If you're not sure what you're doing you can probably hire somebody to take a look at it.

------------------------------------------------------------------
حل المشكلة :
------------------------------------------------------------------

https://www.rise.company/upload/uploads/161031155142361.png

قم بعمل ريستارت restarting MySQL
Home »Restart Services »SQL Server (MySQL)
وهيتم حل المشكلة اذا لم يتم الحل النهائى هو عمل ريستارت للسيرفر وهيصبح 0 %

https://www.rise.company/upload/uploads/162284809724791.png

او ادخل الاوامر التالية وهى تعمل بشكل سليم وبسهولة دون الحاجة لعمل ريستارت للسيرفر كامل

to empty swap by:


swapoff -a

Then turn it on:


swapon -a

First will copy all swap to server RAM, second will turn on swap again.
This will prevent you from reboot each time you will fill your swap.



كيف يتم حل المشكلة نهائيا ؟ حيث بعد مرور شهر هيحدث امتلاء مرة اخري
لذلك يجب البحث عن السبب فى SQL Server المسبب لذلك
وفى الغالبة بيكون الباك اب التلقائى الذى يتم على السيرفر
ولحلها هيتم شرحها فى موضوع اخر لاحقا

المرجع:
https://www.webhostingtalk.com/showthread.php?t=709747
https://forums.cpanel.net/threads/swap-used-explained.608019/
https://forums.cpanel.net/threads/100-of-swap-used-mysql-is-cause-what-to-do.504301/
https://forums.cpanel.net/threads/swap-used-over-90.446591/
https://support.cpanel.net/hc/en-us/articles/360060508193-My-server-is-continuously-using-large-amounts-of-swap-space
https://www.webhostingtalk.com/showthread.php?t=962586