cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

DL_INVALID_ADDRESS causes Core Memory Issue (yellow led)

DL_INVALID_ADDRESS causes Core Memory Issue (yellow led)

leonberger-m
Established Member

Hello, 

we are currently running a CtrlX Core X3 with latest version 2.6.
Further the OPC-UA Client is used to receive data as an input. 

Sometimes it seems that the OPC Client state seems to be connected, but the data nodes cannot be received correctly.
leonbergerm_0-1719836714598.png

leonbergerm_1-1719836755629.png

Since we are working with subscriptions to these data nodes (within Node-Red App) a lot of DL_INVALID_ADDRESS messages appear in the logs. The whole debugging within node-red is just flooded with these messages since the "Data Layer Subscripe" fails. 

For the subscription the following parameters are used: 

 

leonbergerm_3-1719837052531.png

 

As a result the memory of the core inceases until the yellow LED flashes and no remote connection (web) is possible anymore. The only solution is rebooting the device manually by unplugging the power cable. 

Probably the yellow flashing LED is caused by the memory which just runs out. 
In the system performance it can be seen that the memory used by node-red is nearly 866MB. 
There is no free memory at all. 

leonbergerm_4-1719837095638.png

leonbergerm_5-1719837195618.png

 

As a first "workaround" we changed the values of the node-red subscription node to 10 seconds from 500 milliseconds. 

leonbergerm_6-1719837845065.png

But in general the question would be, if there is any other solution or possibility to avoid this kind of problem? Even if we set the values to "default" the log messages appear within seconds and effect the memory. 

Thanks for you support, 
Markus

 

 

 

 

5 REPLIES 5

Sgilk
Contributor

Hi @leonberger-m ,

It looks like you have two seperate problems.

  1. Memory leak in Node-RED
  2. DL_INVALID_ADDRESS from subscription node

Would it be possible to share the Node-RED flow? I am unsure where this memory leak would be originating if you are using the default limited debug logs and aren't creating many local variables.

The error DL_INVALID_ADDRESS is emitted from the subscription nodes if the path that is set in the node configuration or via msg.path doesn't point to an existing datalayer node. Can you try subscribing to some of the system metric nodes and see if the error persists? I don't think this error is an issue with Node-RED and rather with the OPC UA client or the server you are subscribing too. Can you share any more information about the OPC UA client/server setup?

leonberger-m
Established Member

Hi @Sgilk ,

thanks for your quick response.

Regarding 1. 
Within Node-Red we are using some quite simple parameter mapping flows. 
The data is received from OPC-UA source (by subscription) and forwarded to a KVD node. 
In all cases the DL_INVALID_ADDRESS appears since the whole data node of the OPC UA source is currently not available (SPS switched off). 

leonbergerm_0-1719843675017.png

I also attached the example to the reply.

Regarding 2.
Yes that's right. The source nodes are currently not available since the OPC-UA server (source) is sometimes not available. Since the IOT CtrlX device runs separately this situation could happen. If I refer to a existing node or the configured OPC-UA server resource is running the error disappears and everything runs fine. 

Please update node-red-contrib-ctrlx-automation to version 1.9.6 there could be already some solution be included. See Connect real ctrlX CORE via proxy to the Internet

Hello,

we have updated the node-red-contrib-ctrlx-automation to the current available version 1.9.6. 
After that we have reset the parameters back to "default" to verify what happens. 

leonbergerm_0-1720008883733.png

In case the data layer node is not available (e.g. machine is powered off) the DL_INVALID_ADDRESS messages are created quite often. 
But it seems that the logfile is not flooded completely even if we are using the "default values".

So we are going to monitor this issue to verfiy after some hours of runtime that the memory does not increase more and more for the node-red app. The current memory usage is shown in the picture:


leonbergerm_1-1720009164794.png

Regards,
Markus

 

 

Hello @CodeShepherd 
it really seems that version 1.9.6 fixes the node-red subscpription issue since the memory doesn't increase any more even if the default values for the subscription node timings are used. That's great! 

But this morning the memory issue is still present since the KVD allocates the whole memory. 
So only a restart helps to avoid running into the memory issue (yellow led, no response from core). 

leonbergerm_0-1720072016000.png

Could you please take a look into the system report we generated yesterday to verify what is going wrong with the key value database? 
Therefore I opened up another forum topic. 
Key Value Database (KVD) full memory allocation - Bosch Shared (boschrexroth.com)

Thanks and regards. 

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist