ورود

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : سوالی در مورد Virtual Memory Usage



babelirani
November 22nd, 2013, 02:52
با سلام خدمت تمامی عزیزان

متاسفانه از دیشب برای هاست سایت ما یه مشکلی بوجود اومده و اونم پر شدن Virtual Memory Usage میخواستم ببینم دقیقا" این گزینه چی کار میکنه و خوب در حالی که Physical Memory Usage فقط 10 درصد پر میشه چرا Virtual Memory Usage کامل پر هستش به صورتی که کلا" سایت بالا نمیاد
( هاست سایت مال خودمون نیست )

Woshka
November 22nd, 2013, 07:50
سیستم عامل
وب سرور همه رو لطفا بفرمایید تا بهتر بتونم کمکتون کنم

babelirani
November 22nd, 2013, 10:09
سیستم عامل
وب سرور همه رو لطفا بفرمایید تا بهتر بتونم کمکتون کنم

با سلام

سیستم عامل Centos
وب سرور Litespeed

aligoli
November 22nd, 2013, 11:17
با سلام

سیستم عامل Centos
وب سرور Litespeed

کنترل پنل چیست ؟

majidisaloo1
November 22nd, 2013, 12:51
سیستم عامل نمیتونه cent os باشه
کلود لینوکس است درسته؟

babelirani
November 22nd, 2013, 17:07
کنترل پنل چیست ؟
Cpanel

سیستم عامل نمیتونه cent os باشه
کلود لینوکس است درسته؟
ببخشید دقیق نمیدونم شاید حق با شما
بله کلودلینوکس هستش فک کنم

majidisaloo1
November 22nd, 2013, 17:26
Cpanel

ببخشید دقیق نمیدونم شاید حق با شما
بله کلودلینوکس هستش فک کنم

فقط روی کلود این موارد وجود دارد :
Memory is controlled using virtual (VMEM) and physical (PMEM) memory limits.

Virtual Memory Limit
Virtual memory limit corresponds to the amount of memory processes can allocate within LVE. You can see individual process virtual memory usage by monitoring VIRT column in top output for the process.
When process tries to allocate more memory, CloudLinux checks if the new total virtual memory used by all processes within LVE is more then a limit set. In such case CloudLinux will prevent memory from being allocated and increments fVMEM counter. In most cases, but not all of them - this causes process to fail. For CGI/PHP scripts it will usually cause 500 and 503 error.


Physical Memory Limit
Physical memory limit corresponds to the amount of memory actually used by end customer's processes. You can see individual process physical memory usage by monitoring RES column in top output for the process. Because similar processes (like PHP) share a lot of their memory, physical memory usage is often much lower then virtual memory usage.
Additionally physical memory includes shared memory used by the customer, as well as disk cache.
In case of disk cache -- if user is starting to lack physical memory, the memory used for disk cache will be freed up, without causing any memory faults.
When LVE goes over physical memory limit, CloudLinux will first free up memory used for disk cache, and if that is not enough, it will kill some of the processes within that LVE, and increment fPMEM counter. This will usually cause web server to serve 500 and 503 errors. Physical memory limit is a much better way to limit memory for shared hosting.

babelirani
November 23rd, 2013, 01:08
فقط روی کلود این موارد وجود دارد :
Memory is controlled using virtual (VMEM) and physical (PMEM) memory limits.

Virtual Memory Limit
Virtual memory limit corresponds to the amount of memory processes can allocate within LVE. You can see individual process virtual memory usage by monitoring VIRT column in top output for the process.
When process tries to allocate more memory, CloudLinux checks if the new total virtual memory used by all processes within LVE is more then a limit set. In such case CloudLinux will prevent memory from being allocated and increments fVMEM counter. In most cases, but not all of them - this causes process to fail. For CGI/PHP scripts it will usually cause 500 and 503 error.


Physical Memory Limit
Physical memory limit corresponds to the amount of memory actually used by end customer's processes. You can see individual process physical memory usage by monitoring RES column in top output for the process. Because similar processes (like PHP) share a lot of their memory, physical memory usage is often much lower then virtual memory usage.
Additionally physical memory includes shared memory used by the customer, as well as disk cache.
In case of disk cache -- if user is starting to lack physical memory, the memory used for disk cache will be freed up, without causing any memory faults.
When LVE goes over physical memory limit, CloudLinux will first free up memory used for disk cache, and if that is not enough, it will kill some of the processes within that LVE, and increment fPMEM counter. This will usually cause web server to serve 500 and 503 errors. Physical memory limit is a much better way to limit memory for shared hosting.

خیلی ممنون

ولی مشکل بنده هنوز رفع نشده

alirayaneh
September 22nd, 2015, 22:33
سلام ..
دوستان هر چند این تاپیک بسیار قدیمی است اما بدلیل نبود تاپیک مشابهی با این عنوان در نتایج گوگل . حیف اومد کاربرانی که به این تاپیک هدایت میشن بی پاسخ بمونن

خوب این مشکل که اغلب در هاستینگ های اشتراکی ممکن کاربران با اون مواجه شده باشن . دلیل مشخصی داره . که معمولا اجرای حلقه های طولانی و استفاده از توابعی نظیر
file_get_contents در php و یا تعریف تعداد زیاد cron jobs و یا اجرای چند process (پردازش) سنگین و... که میزان زیادی از مموری رو مصرف میکنن و یا دلایل مختلف دیگه .. بوجود میاد اما گاها حتی با حذف نرم افزار یا اسکریپت از هاست هنوز اون قسمت Virtual Memory Usage
سر جای خودش باقی هست و پایین نمیاد ..

شما در صورتی که هاست با کنترول پنل cpanel دارید . میتونید . وارد قسمت php config بشید و میزان محدودیت مموری رو کاهش بدید مثلا اگر 512 هست کاهش بدید به 256 و تغیرات رو ذخیره کنید . با این کار memory ریست میشه . و Virtual Memory Usage صفر میشه . //

- - - Updated - - -

لازم بذکره که دسترسی به تنظیمات php config در برخی از هاستینگ های اشتراکی وجود نداره . ..

Woshka
September 23rd, 2015, 00:48
اگر نوع هندلر آپاچی fcgi باشهکم کردن میزان مموری خطر داره چون fcgi خیلی به میزان مموری حساس هست