Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node --prof: high load of Shared libraries /usr/bin/node #4422

Open
denyaalt opened this issue Jun 18, 2024 · 2 comments
Open

node --prof: high load of Shared libraries /usr/bin/node #4422

denyaalt opened this issue Jun 18, 2024 · 2 comments
Labels

Comments

@denyaalt
Copy link

denyaalt commented Jun 18, 2024

Node.js Version

v20.12.0

Operating System

Debian 6.1.69-1 (2023-12-30) x86_64 GNU/Linux

Description

Hi, I am testing node with network load and I get the following profiling results:

 [Shared libraries]:
   ticks  total  nonlib   name
  285518   63.3%          /usr/bin/node
  21547    4.8%          /usr/lib/x86_64-linux-gnu/libc.so.6
    770    0.2%          [vdso]
    231    0.1%          /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30
    114    0.0%          /usr/lib/x86_64-linux-gnu/libm.so.6

 [Summary]:
   ticks  total  nonlib   name
  44333    9.8%   31.0%  JavaScript
  43387    9.6%   30.3%  C++
  19641    4.4%   13.7%  GC
  308180   68.3%          Shared libraries
  55499   12.3%          Unaccounted

There is a high CPU load on the node itself, but what does this mean?
What is the bottleneck?

P.S. My node script receives 10k TCP packets from different clients and sends 20k TCP packets to other clients.

@preveen-stack
Copy link
Contributor

Can you share the configuration of the machine

@denyaalt
Copy link
Author

How does the hardware configuration matter in answering my question?
If the hardware is more powerful, it can handle more traffic; if it is weaker, it can handle less.

My question is what does Shared libraries and /usr/bin/node mean in profiling report?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants