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

مشاهدة النسخة كاملة : كلاود لينكس Cloud Linux حل مشكلة Memory cgroup out of memory kill process



Rise Company
26-01-2024, 07:33
كلاود لينكس Cloud Linux حل مشكلة Memory cgroup out of memory kill process
memory cgroup out of memory kill process litespeed
Using CGroups with OpenLiteSpeed - oom killer on litespeed processes
out of memory error. Seems false - Server out of memory
Problem: memory cgroup out of memory: killed process lsphp


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

المشكلة :

I'm facing this issue in my server anone please help. I'm using Cloudlinux and LiteSpeed When we run this command we se this output: "[Mon Mar 21 23:50:30 2022 < 0.000001>] memory: usage 524288kB, limit 524288kB, failcnt 286099 [Mon Mar 21 23:50:30 2022 < 0.000005>] Memory cgroup out of memory: Killed process 1937 (lsphp) total-vm:281136kB, anon-rss:55972kB, file-rss:12892kB, shmem-rss:4kB, UID:1240 pgtables:552kB oom_score_adj:0 " Command: dmesg -d -f kern -L -T -w | grep -i memory:

عند فتح الدخول على السيرفر من خلال IPMI
نجد الشاشة يظهر الكثير من Memory cgroup out of memory kill process
لكن فى الحقيقة السيرفر يعمل ولا يوجد اى مشكلة
مع العلم ان السيرفر 64 جيجا رام والمستهلك 10% فقط
فكيف يظهر ان هناك out of memory !!!

سبب المشكلة :

هو وجود ليمت من كلاود لينكس cloudlinux limit الذى به تقييد على users فى استهلاك الرام
This is a change that is made inside CloudLinux as the root user for the account packages.

حل المشكلة :

اذهب الى WHM> CloudLinux And Increase PMEM in Packages
ثم ارفع Limit كل اليوزر اذا كنت تحتاح ذلك وبالطبع لا حاجة لذلك

ويمكنك الغاء Limit تماما على الرام بوضع قيمة 0
disable VMEM limits (set them to 0) in your system

فلا يوجد اى مشكلة , هذا التقييد هو لمنع استنفاذ الرام من السيرفر
لا يوجد لديك اى مشكلة بل العكس هذا يدل ان Limit يعمل بشكل سليم.

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

واذا كنت تريد حل المشكلة لليوزر تستطيع استخراج الرقم من Log
See which user is UID:1051 and check the resources for that account.

اذهب الى Home / Server Configuration / CloudLinux Manager
ثم انتقل الى Statistics ثم هتجد فى بداية كل سطر LVE ID وهو رقم user


المرجع:
https://support.cpanel.net/hc/en-us/community/posts/19161819782039-Memory-cgroup-out-of-memory
https://forum.directadmin.com/threads/problem-memory-cgroup-out-of-memory-killed-process-lsphp.64828/
https://support.cpanel.net/hc/en-us/community/posts/19651880859031-out-of-memory-error-Seems-false
https://www.litespeedtech.com/support/forum/threads/oom-killer-on-litespeed-processes.16352/
https://docs.litespeedtech.com/lsws/cgroups/
https://openlitespeed.org/kb/using-cgroups-v2-with-openlitespeed/
https://www.litespeedtech.com/support/forum/threads/server-out-of-memory.4259/