Node.js spiking on LLM to 100% cpu

After flow goes to ai Agent even on 16core cpu spiking 100% and is being proccesed like for 30 minutes, before was about 2-3 minutes?

Anyone has the solution?

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.95.2
  • Database (default: postgres):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker):
  • Operating system: Ubuntu 24.04
1 Like

Hey @nikolinm

Can you share yiour workflow please, also, it could be due to a number of issues, have you enabled debug logs / or checked normal logs anything you can see there?

n8n attach workflow

Also, can you try print htop or top from terminal windows plz when this happens, to confirm if it’s node or something else.

You may also try to upgrade to latest version.

Best regards,

Samuel

I have downgraded to 1.94.1 now it’s fine. Maybe was OpenAi Api, I didn’t collect logs.

@nikolinm Ah okay, am sure a newer version this is fixed, but glad it working on that version.

Hope all goes well,

Samuel

Had the same problem and the same solution worked for me.

I also tried higher versions ( 1.95.2-1.97.1) and the problem is the same on all of the versions > 1.94.1

@Edit

Correction - I thought it was fixed - it still is not! :cry:

OK, I couldn’t edit the above post, so I am replying to myself. I found a reliable workaround and shared it here: