{"id":11307,"date":"2024-07-22T19:57:49","date_gmt":"2024-07-22T19:57:49","guid":{"rendered":"https:\/\/astrihost.com\/knowledgebase\/?post_type=web-hosting&#038;p=11307"},"modified":"2024-09-06T13:17:47","modified_gmt":"2024-09-06T13:17:47","slug":"managing-website-ram-and-physical-memory-usage","status":"publish","type":"web-hosting","link":"https:\/\/astrihost.com\/knowledgebase\/web-hosting\/managing-website-ram-and-physical-memory-usage\/","title":{"rendered":"Managing Website RAM and Physical Memory Usage"},"content":{"rendered":"<style>.kb-row-layout-id11307_11b40b-0c > .kt-row-column-wrap{align-content:start;}:where(.kb-row-layout-id11307_11b40b-0c > .kt-row-column-wrap) > .wp-block-kadence-column{justify-content:start;}.kb-row-layout-id11307_11b40b-0c > .kt-row-column-wrap{column-gap:var(--global-kb-gap-md, 2rem);row-gap:var(--global-kb-gap-md, 2rem);max-width:var( --global-content-width, 1250px );padding-left:var(--global-content-edge-padding);padding-right:var(--global-content-edge-padding);padding-top:var(--global-kb-spacing-sm, 1.5rem);padding-bottom:var(--global-kb-spacing-sm, 1.5rem);grid-template-columns:minmax(0, 1fr);}.kb-row-layout-id11307_11b40b-0c > .kt-row-layout-overlay{opacity:0.30;}@media all and (max-width: 1024px){.kb-row-layout-id11307_11b40b-0c > .kt-row-column-wrap{grid-template-columns:minmax(0, 1fr);}}@media all and (max-width: 767px){.kb-row-layout-id11307_11b40b-0c > .kt-row-column-wrap{grid-template-columns:minmax(0, 1fr);}}<\/style><div class=\"kb-row-layout-wrap kb-row-layout-id11307_11b40b-0c alignnone wp-block-kadence-rowlayout\"><div class=\"kt-row-column-wrap kt-has-1-columns kt-row-layout-equal kt-tab-layout-inherit kt-mobile-layout-row kt-row-valign-top kb-theme-content-width\">\n<style>.kadence-column11307_55568a-30 > .kt-inside-inner-col,.kadence-column11307_55568a-30 > .kt-inside-inner-col:before{border-top-left-radius:0px;border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:0px;}.kadence-column11307_55568a-30 > .kt-inside-inner-col{column-gap:var(--global-kb-gap-sm, 1rem);}.kadence-column11307_55568a-30 > .kt-inside-inner-col{flex-direction:column;}.kadence-column11307_55568a-30 > .kt-inside-inner-col > .aligncenter{width:100%;}.kadence-column11307_55568a-30 > .kt-inside-inner-col:before{opacity:0.3;}.kadence-column11307_55568a-30{position:relative;}@media all and (max-width: 1024px){.kadence-column11307_55568a-30 > .kt-inside-inner-col{flex-direction:column;justify-content:center;}}@media all and (max-width: 767px){.kadence-column11307_55568a-30 > .kt-inside-inner-col{flex-direction:column;justify-content:center;}}<\/style>\n<div class=\"wp-block-kadence-column kadence-column11307_55568a-30\"><div class=\"kt-inside-inner-col\">\n<p class=\"wp-block-paragraph\">RAM, or physical memory, temporarily stores all the data needed to run your website. If this memory reaches its limit, you may encounter 502\/503\/504 errors. Several factors can cause high RAM usage, such as a poorly optimized site, heavy themes or plugins, high traffic, or DDoS attacks.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When CPU or RAM usage hits 100%, it means your website is using all available resources, which can slow down your site significantly and even cause it to time out. High resource usage can also affect other users on the server, leading to excessive server loads.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Checking Your Website&#8217;s Resource Usage in cPanel<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">cPanel includes a feature that shows the statistics of your website&#8217;s resource usage, including CPU usage, physical memory (RAM) usage, entry processes, faults, and I\/O usage over time.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you exceed your CPU, memory, or entry process limits within 24 hours, you&#8217;ll see a message: \u201c<strong>Your account has been limited in the past 24 hours<\/strong>.\u201d Click &#8220;Details&#8221; for an overview of what was limited, along with graphs that visually represent resource usage. Investigate and resolve any code or caching issues to prevent your site from shutting down.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Viewing CPU Usage in cPanel<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">To check CPU and RAM usage:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Login to cPanel.<\/strong><\/li>\n\n\n\n<li><strong>For a quick view<\/strong>: Scroll to the right-hand sidebar until you see CPU Usage.<\/li>\n\n\n\n<li><strong>For detailed information<\/strong>: Scroll down to the Metrics section and click &#8220;Use of resources.&#8221;<\/li>\n\n\n\n<li><strong>Resource Usage Overview<\/strong>: Click on &#8220;Details&#8221; to see statistical charts of detailed resource usage.<\/li>\n\n\n\n<li><strong>Usage Periods<\/strong>: View usage for the current day, week, or month to get a detailed report. The Usage Report section shows how stable CPU\/RAM usage was over the specified time frame.<\/li>\n\n\n\n<li><strong>Optimization<\/strong>: Based on the data, optimize or upgrade your website as needed.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Steps to Take When You Exceed Your Resources<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If your resource usage exceeds your package limits, you can take the following steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Review and Update<\/strong>: Upgrade all plugins, modules, or themes to their latest versions.<\/li>\n\n\n\n<li><strong>Optimize<\/strong>: Contact your web developer to optimize your website.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">If these steps don&#8217;t reduce resource usage, you may need to upgrade your hosting package. Contact support for assistance.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Importance of Monitoring Server Resources<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Regularly monitor your website&#8217;s resource usage to know when optimization or upgrades are necessary. An optimized website loads faster and performs better. If you consistently exceed CPU and RAM limits, you may receive warning emails or face temporary suspension, depending on the severity of the usage.<\/p>\n<\/div><\/div>\n\n<\/div><\/div>","protected":false},"featured_media":0,"template":"","meta":{"_acf_changed":false,"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":""},"class_list":["post-11307","web-hosting","type-web-hosting","status-publish","hentry"],"acf":[],"taxonomy_info":[],"featured_image_src_large":false,"author_info":[],"comment_info":"","_links":{"self":[{"href":"https:\/\/astrihost.com\/knowledgebase\/wp-json\/wp\/v2\/web-hosting\/11307","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/astrihost.com\/knowledgebase\/wp-json\/wp\/v2\/web-hosting"}],"about":[{"href":"https:\/\/astrihost.com\/knowledgebase\/wp-json\/wp\/v2\/types\/web-hosting"}],"wp:attachment":[{"href":"https:\/\/astrihost.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=11307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}