On Junos platforms with PKI, the PKID process shows memory usage increase over time after a larger number of certificate verifications because some memory allocated during the certificate verification is not released.
This problem could arise under the following circumstances:
1. Across all Junos Platform
2. When PKI is enabled
Below command will show memory usage increase in PKID daemon after a certificate verification."show system process extensive | match pkid"
Example output:-
> show system processes extensive | match pkid
PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU COMMAND
2149 root 123 0 161M 139M RUN 0 815:01 68.41% pkid <<<<<<<<<<<<<=====
Some memory allocated during the certificate verification is not released. This occurs in every certificate verification. The memory lost cannot be reclaimed until the PKID process is restarted manually. The amount of the leak varies depending on the certificate hierarchy, from a few KB to hundreds of KB. Per the description in this PR, AAMW operation is impacted.
This problem applies to all platforms using the pki-service (the daemon process name is PKID), including all SRX platforms, maybe also some NFX/MX/EVO platforms.
The issue can be recovered by executing the below CLI command
>restart pki-service
22.1R1, 21.3R2, 21.2R2, 21.1R3, 21.2R3, 21.4R1, 20.3R3-S2