The bgp memory-usage exception-threshold discard new-route command enables BGP to discard routes received from all peers if the memory usage of a device is abnormal.
The undo bgp memory-usage exception-threshold discard new-route command disables BGP from discarding routes received from peers if the memory usage of a device is abnormal.
By default, BGP does not discard routes received from peers if the memory usage of a device is abnormal.
Usage Scenario
By default, BGP does not discard routes received from peers if the memory usage of a device is abnormal. Instead, BGP continuously accepts routes. As a result, the memory usage of the device keeps increasing or even is exhausted, causing the process or board to reset. To address this problem, run the bgp memory-usage exception-threshold discard new-route command to enable BGP to discard routes received from all peers if the memory usage of the device is abnormal.