[NETCONF-1043] Possible memory leak when running get-config with large response file Created: 29/May/23  Updated: 30/May/23

Status: Open
Project: netconf
Component/s: netconf
Affects Version/s: 3.0.9, 5.0.6
Fix Version/s: None

Type: Bug Priority: High
Reporter: Israel Marinho Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: pick-next, pt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Host Ubuntu 20.04.4 LTS

Java openjdk 17.0.7

Netconf testtool version 5.0.6


Attachments: XML File get_config_response.xml     Text File odl_5.0.6.log    
Priority: Normal

 Description   

Hello, guys.

I'm using the netconf testtool to test a NETCONF device manager, and one of the tests is to check how the manager would handle a (relatively) large configuration data received through a get-config request.

For that, I'm using a dummy config file 27MB large and passing it in command line with the --initial-config-xml-file parameter. The entire command I used for running the application is this:

```
java -jar netconf-testtool-5.0.6-executable.jar --schemas-dir yang_modules --initial-config-xml-file get_config_response.xml --starting-port 17900 --ip 127.0.0.1

```

The memory consumption when the application starts is around 120MB. Using a NETCONF client and sending a get-config request, the consumption goes to 750MB; when a second get-config is sent, the consumption goes to 1.1GB and stays at that level for ever if you don't interact with it anymore.

Could you please have a look at this?
I reproduced the same issue with version 3.0.9.

Attached are the config data file I'm using and a log file. I tried to upload a heap dump I collected but its size exceeds the limit.

 


Generated at Wed Feb 07 20:16:32 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.