nodejs / help

:sparkles: Need help with Node.js? File an Issue here. :rocket:
1.44k stars 276 forks source link

High CPU utilization observed after upgrading from node 14.17 to node 20 #4363

Closed adipeka closed 3 months ago

adipeka commented 3 months ago

Details

We have nodejs workloads running on EKS clusters. These services also implement HTTP clients that call downstream applications and axios is used for this. After upgrading from node 14.17 to 20 we see more than 100% increase in CPU utlization. Is this expected? Any suggestions around how to improve CPU utilization for concurrent http calls would help.

Node.js version

20

Example code

const res = await axiosInstance.request(axiosRequestConfig)

Operating system

Linux EC2 instance

Scope

runtime

Module and version

No response

Trott commented 3 months ago

You might try searching existing issues in the nodejs/node repository and asking in an axios forum or issue tracker about if others are experiencing the same thing. Sorry no one has jumped in to help here, but there's also not a lot to go on....