thingsboard-gateway icon indicating copy to clipboard operation
thingsboard-gateway copied to clipboard

Memory usage remains high

Open ultimate-smile opened this issue 1 year ago • 1 comments

Describe the issue The gateway only mounted two or three devices and sent telemetry data once a second (using the opcua protocol). The memory occupied by a single gateway remained high, from more than 1G at the beginning to more than 6G later.

Configuration (Attach your configuration file) Notate: Remove Access token from file if you want to attach a tb_gateway.yaml

Connector name (If you need help with some connector/converter): [opcua Connector]

Error traceback (If it was raised):

'deviceName'
Traceback (most recent call last):
  File "<input>", line 2, in <module>
KeyError: 'deviceName'

Versions (please complete the following information):

  • OS: [CentOS Linux 8 ]
  • Thingsboard IoT Gateway version [3.5.1]
  • Python version[3.11.9]

ultimate-smile avatar Jun 28 '24 02:06 ultimate-smile

Hi @ultimate-smile,

Please provide more information about your environment - What is the verison of ThingsBoard? Do you have enabled remote logging?

Because to send a data to the server mqtt client uses internal queue, and it can use the memory in this way in case of having a lot of messages. You can easily track it just by enabling/disabling remote logging feature.

imbeacon avatar Jul 01 '24 06:07 imbeacon