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

[Help] Speed ​​problems using mqttx on linux terminal #1740

Open
Snak3in opened this issue Aug 23, 2024 · 6 comments
Open

[Help] Speed ​​problems using mqttx on linux terminal #1740

Snak3in opened this issue Aug 23, 2024 · 6 comments
Assignees
Labels
CLI MQTTX CLI help wanted Extra attention is needed Linux performance Improve some performance
Milestone

Comments

@Snak3in
Copy link

Snak3in commented Aug 23, 2024

hi, yesterday I managed to use and understand how to make mqttx work from a Linux terminal, but now I realize that the connection seems really slow and for example sending a message on a topic, from when I send the command to when the action completes about 10 seconds pass and I was wondering if this was normal.
My internet connection is not a problem and is not slow, can you help me?

@Snak3in Snak3in added the help wanted Extra attention is needed label Aug 23, 2024
@ysfscream ysfscream self-assigned this Aug 27, 2024
@ysfscream ysfscream added CLI MQTTX CLI Linux labels Aug 27, 2024
@ysfscream ysfscream added this to the v1.11.0 milestone Aug 27, 2024
@ysfscream
Copy link
Member

Thank you for reporting this issue. To better understand the problem:

  1. Please use the --debug flag to identify where the delay occurs.
image
  1. Provide more details about your setup and usage, including:

    • MQTTX version
    • Linux distribution and version
    • Exact commands used

@Snak3in
Copy link
Author

Snak3in commented Aug 30, 2024

Thanks for the reply, I used the debug by posting on a topic and I noticed that the times are normal, the problem is right at the beginning when I send the command because MQTTX takes 100% of the CPU, I tried both on Ubuntu 18.04 on an ATOM processor and the delay is about 8 seconds, while on Ubuntu 22 mounted on a virtual machine on a PC with Intel Core i7 the delay is 2/3 seconds.
Maybe there is some bug?
The mqttx version is always the latest release in both cases

@ysfscream
Copy link
Member

So, you mean it gets stuck or delay whenever you run the mqttx command, right?

@Snak3in
Copy link
Author

Snak3in commented Aug 30, 2024

yes

@ysfscream
Copy link
Member

ysfscream commented Aug 30, 2024

Could you please provide more details about the system info? For example, if it's 2 Core 4 GB. It will help us try to reproduce the issue with those specific settings. This problem might occur because MQTTX CLI is built on Node.js, which isn't the most lightweight solution.

@ysfscream ysfscream added the performance Improve some performance label Aug 30, 2024
@Snak3in
Copy link
Author

Snak3in commented Aug 30, 2024

yes, this is the system info: Intel® Atom™ Processor E3826 (1M Cache, Upto 1.46 GHz SoC, 7W TDP), 2GB RAM

@ysfscream ysfscream modified the milestones: v1.11.0, v1.11.1 Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI MQTTX CLI help wanted Extra attention is needed Linux performance Improve some performance
Projects
Status: Backlog
Development

No branches or pull requests

2 participants