Storing key-pairs consumes system memory and file resources. You can run the key-pair maximum command to set the maximum number of allowed key-pairs to prevent excess key pairs from exhausting system resources.
Example
# Set the maximum number of allowed ECC key-pairs to 15.
<HUAWEI> system-view
[~HUAWEI] ecc key-pair maximum 15
# Set the rsa key-pair maximum value as 15.
<HUAWEI> system-view
[~HUAWEI] rsa key-pair maximum 15