Frequent Out of Memory issue

Hi community

we have a website with mostly static content and scrolling pictures. There is no database for this website.
The webserver crashes frequently with "out of memory".

This issue resolves, after I reboot the node, until the next time this occurs

I found very little useful information on var/log/messages.
Is there some other log that I can use to identify the root cause.

note: this is related to https://www.linode.com/community/questions/27533/website-not-available.
I apologize to create a new issue, but I thought this will get more attention

1 Reply

Based on what you have described, it sounds like the typical symptoms of an Out of Memory (OOM) Kill error. In these situations, your system runs out of memory and kills off lower-prioritized processes in order to maintain system stability. From the outside, this can appear like random slow downs or crashes while applications close in order to process higher influxes of inbound/outbound website requests. In regards to web servers, increases of inbound/outbound web requests does increase your overall resource needs, so instances of heavy traffic can result in the performance issues you've described.

It's also possible that CPU usage has reached past the allotted CPU usage that your plan has and have caused your Linode to freeze. Without the information about your plan and stats about your usage, it's hard to say where the issue could be stemming from. For example, if your Linode plan is 2GB which has 1 CPU core, its maximum CPU usage is 80% for a Shared plan—so essentially which has been running at almost 100% capacity.

You'll want to consider either continually monitor your CPU usage. The most common method of monitoring your Linode's performance is by using the top command. You can also configure email alerts, so when your CPU usage you'll receive notifications of when your CPU plan starts nearing its' allowed limit.

Generally, as system needs grow, the most direct solution to running out of resources is to upgrade to a larger plan with more resources. That said, you can also take steps to optimize your setup so as to better use the already available resources. For more information about OOM and how to optimize your website, be sure to check out the following Community posts:

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct