Node-RED Freezing Issue After Running for a Period of Time

The main operation flow of my Node-RED program is as follows:

  1. Act as a client to connect to access control systems and elevators, and conduct command interaction with them.
  2. Act as a scheduling center to subscribe to door opening/closing and elevator commands from system P; after receiving the commands, send them to access control systems or elevators via TCP output, and then publish MQTT messages to notify system P.
  3. Subscribe to business-related MQTT messages, process the data, and then synchronize and update it to the MySQL database.
  4. Call HTTP interfaces to handle related business processes, which also include connecting to MySQL for database queries and other operations.

After the program runs for a period of time, problems such as unresponsiveness, freezing or delays will occur in the business processes related to access control systems and elevators. Restarting the Node-RED service will restore normal operation. I would like to ask if anyone has encountered similar problems, and how to locate the root cause and solve it? Thank you very much!

Hi and welcome to the forum.

You may need to share more details.

What kind of machine are you using?
How much memory?
O/S?
Which NR version?

How are you accessing the machine? Directly or remotely?

As you are new here, you are limited to how many posts you can make.
So if you add any new information I would suggest you EDIT the original post and add it at the bottom.

Welcome to the forum.

It would be useful if you could also elaborate what 'system P' means ?

Sorry, "P" refers to the client that publishes messages to the MQTT topic.

  1. My Node-RED version is 4.1.0.
  2. It is deployed via Docker on a Ubuntu 22.04 virtual machine system.
  3. The virtual machine configuration is as follows: 16 GB of RAM.
  4. I access the editor directly via IP address:1880.

Thank you for your reply.

Are you showing a dashboard that has charts?