You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"ps aux" shows libnetconf2 example "server.c" occupied a lot memory after sending a big edit-config RPC (RPC size 60M+) #547
changed the title [-]"ps aux" shows libnetconf2 "example.c" occupied a lot memory after sending a big edit-config RPC (RPC size 60M+)[/-][+]"ps aux" shows libnetconf2 "server.c" occupied a lot memory after sending a big edit-config RPC (RPC size 60M+)[/+]on Jul 24, 2025
changed the title [-]"ps aux" shows libnetconf2 "server.c" occupied a lot memory after sending a big edit-config RPC (RPC size 60M+)[/-][+]"ps aux" shows libnetconf2 example "server.c" occupied a lot memory after sending a big edit-config RPC (RPC size 60M+)[/+]on Jul 24, 2025
I am not completely sure what the issue is. Run the server with valgrind, if no leaks are reported, it works properly. Maybe ps shows even freed memory, I am not sure what exactly malloc() and free() do. It may be possible the freed memory is not returned to the system but kept expecting more memory allocations, which would explain what you are seeing.
Activity
[-]"ps aux" shows libnetconf2 "example.c" occupied a lot memory after sending a big edit-config RPC (RPC size 60M+)[/-][+]"ps aux" shows libnetconf2 "server.c" occupied a lot memory after sending a big edit-config RPC (RPC size 60M+)[/+][-]"ps aux" shows libnetconf2 "server.c" occupied a lot memory after sending a big edit-config RPC (RPC size 60M+)[/-][+]"ps aux" shows libnetconf2 example "server.c" occupied a lot memory after sending a big edit-config RPC (RPC size 60M+)[/+]michalvasko commentedon Jul 25, 2025
I am not completely sure what the issue is. Run the server with
valgrind, if no leaks are reported, it works properly. Maybepsshows even freed memory, I am not sure what exactlymalloc()andfree()do. It may be possible the freed memory is not returned to the system but kept expecting more memory allocations, which would explain what you are seeing.