Description

On all Junos platform which support ZTP, memory leak will be seen after zeroize the system.
This is a software bug when the device has been left for a long time without configuration as default config would cause a memory leak little by little.
This KB describes the details of this issue and a workaround.

Symptoms

On all Junos platform which support ZTP, available memory will be reduced little by little.
user@device> show system memory
fpc0:
System memory usage distribution:
       Total memory: 1942528 Kbytes (100%)
    Reserved memory:   38572 Kbytes (  1%) 
       Wired memory:  180380 Kbytes (  9%)
      Active memory: 1506076 Kbytes ( 77%)
    Inactive memory:  114012 Kbytes (  5%) 
       Cache memory:   44804 Kbytes (  2%)  
        Free memory:   58212 Kbytes (  2%) >>>>>Overtime free memory will keep decreasing.

And continuing message below could be seen.
Feb 28 00:16:13 init: low_mem_signal_processes: send signal 16 to routing
Feb 28 00:16:13 init: low_mem_signal_processes: send signal 16 to l2cpd-service
Feb 28 00:16:15 init: low_mem_signal_processes: send signal 16 to routing
Feb 28 00:16:15 init: low_mem_signal_processes: send signal 16 to l2cpd-service
Feb 28 00:16:16 init: low_mem_signal_processes: send signal 16 to routing
Feb 28 00:16:16 init: low_mem_signal_processes: send signal 16 to l2cpd-service
After exhausted all the memory, the device won't be able to access even via console access.

Solution

This is a software bug which has been fixed through PR below:

https://prsearch.juniper.net/PR1726603

There is a software bug on jdhcp process which fails to free its memory. As a result, memory usage keeps increasing.
As a workaround, please reboot the device or do not leave the device without configuration change for a long timer after having a zeroize.

Modification History

2023-08-23: Created a KB