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

High cpu usage on client desktop, when doing very fast read write operations for a few minutes. #169

Open
gautam247gk opened this issue Jul 28, 2022 · 1 comment

Comments

@gautam247gk
Copy link

Hi,
I have been building an application that requires me to communicate with a micro controller. I initially send 2 bytes of data and the micro controller responds with 50 lines of data. Followed by me sending 2 bytes again and the cycle goes on for a few minutes. I observed that this is causing a high CPU usage on the client system. For very low end systems this has started to bottleneck my web application and my reads become delayed or very slowed after 30 seconds. On mid range to higher end systems, my reads get slow after 2 to 2.5 minutes. Any idea why this is happening or how to solve this?

@reillyeon
Copy link
Collaborator

This is very interesting behavior and I wonder if it is caused by memory pressure due to the allocation of ArrayBuffers for the received data. Can you provide example code which demonstrates this issue with a common microcontroller like an Arduino?

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

No branches or pull requests

2 participants