How to monitor performance, bottlenecks, and points of failure on a Socket.IO server #5388
Unanswered
ThePokyWizard
asked this question in
Q&A
Replies: 2 comments
-
Hi! You can either use: |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks @darrachequesne Example:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I ran into a bizarre issue a few days ago. I have a server running Socket.IO with PM2 (the one provided by Socket.IO) for almost two years, with no reboots or PM2 restarts.
One day, the server’s RAM usage started to increase gradually throughout the day, eventually hitting 100%, and I had to reboot the machine.
How can I identify bottlenecks or failures on the server to prevent this from happening again and also determine the root cause of the problem?
For example, I can’t even know, either through logs or in real time, how many sockets are connected or even how many rooms exist or have been created.
Beta Was this translation helpful? Give feedback.
All reactions