High CPU & IO - no apparent reason

This is the 2nd time this happened to me while working in n8n.
(Server info: Digital Ocean -2cpu’s and 4gb of ram.)

For some odd reason, my CRU and IO seem to go extremely high out of the blue, and when I try to load n8n in the browser I get a blank page.

I have tried give it like 30 min to go back to normal but it doesn’t seem to work… so I end up rebooting the server and things seem to go back to normal.

Is this just me? how am I crashing n8n? is it my server?
is it a flow I am working on? (I don’t have so many running at the same time… )

Is there a way to make a failsafe?

Any thought on the matter would be great.

Hi @David_Go, I haven’t seen this myself.

From looking at your screenshot it also seems like the inbound network traffic correlates with the high CPU usage and Disk I/O. The high CPU usage from your screenshot shows the majority of resource being used for “sys” operations. My understanding is that this would be code executed by kernel operations, so it doesn’t look like n8n is the actual cause for the high load here (but then again I am not a digital ocean user, so these charts might show something different).

If it’s not you sending large amounts of data to your n8n instance, my first step would be to identify the source of this traffic.

I’d then try and track down the CPU usage. I usually take a look at htop or docker stats first (obviously, the latter only makes sense if you are managing your applications using docker).

1 Like

@MutedJam Thanks for the input.

I just rebooted and got things back to normal. I am going to take a closer look at the records and see what sticks out.

If I figure it out I will be sure to update this post. if not, well it remains a mystery for now :slight_smile:

Well, everything seems to be looking fine now since I rebooted and I am back to normal.

1 Like

any findings? i am facing the similiar issue with n8n with digital ocean.

1 Like

I updated and rebooted and things went back to normal.
So far I have not had this issue again for the past few months.

1 Like