I am having this error every few days and I have to reboot the router to resolve it. Any idea what might have caused it?
Below is the error.
000014: *Jan 30 02:02:14.531 GMT: %SYS-2-MALLOCFAIL: Memory allocation of 65536 bytes failed from 0x6021A5C4, alignment 16
Pool: Processor Free: 244108 Cause: Memory fragmentation
Alternate Pool: None Free: 0 Cause: No Alternate pool
-Process= "ARP Input", ipl= 3, pid= 10
-Traceback= 0x608DD040 0x601FBB28 0x60200C38 0x6021A5CC 0x60245E38 0x602466D8 0x60246960 0x60A63A3C 0x60A69720 0x60A6D4A4 0x60A6DB3C 0x60696374 0x60A9529C 0x60C0F518 0x60C0FB24 0x60C10614
000015: *Jan 30 02:02:14.535 GMT: %FIB-3-NOMEM: Malloc Failure, disabling CEF
-Traceback= 0x608DD040 0x60A63AA4 0x60A69720 0x60A6D4A4 0x60A6DB3C 0x60696374 0x60A9529C 0x60C0F518 0x60C0FB24 0x60C10614 0x606A3AF0
I think Reza's suggestion is good anyway. The output posted in the original post includes the phrase Process= "ARP Input", so maybe you could also check if for some reason (e.g. attack or virus/malignant software in a pc) your router receives an abnormally high number of ARP requests.
Edit: Just a clarification. My additional suggestion makes sense if problem persists after following Reza's suggestion. See the following document:
"This kind of default route, especially if it is used by a lot of packets to many different destination subnets, can cause high processor utilization and a very large ARP cache (along with attendant memory allocation failures)."
This device has recorded a %SYS-2-MALLOCFAIL: error message.
An attempt to allocate memory has failed. Depending on the criticality of the data to be stored, CEF operation may be impacted.
A memory shortage has caused an internal software error. CEF switching has been disabled on the specified slot.
This error indicates a memory allocation failureA memory allocation failure occurs in one of these situations:
1. The current system configuration, network environment, or possibly a software error may have exhausted or fragmented the router's memory.
2. When the router uses up all available memory (temporarily or permanently)
3. When the memory is fragmented into such small pieces that the router cannot find a usable block. This issue can occur with the processor memory or with the packet memory.
This error can occur due to a variety of reasons that include:
* Incorrect configuration
* Too many features enabled for a small amount of memory
* A single process that consumes more memory
Can you share the output of show process cpu and show memory
Is this router facing the Internet?
How many routes are in your route table?
It seems that you are running out of memory and the router disables CEF.
Can you change "ip route 0.0.0.0 0.0.0.0 FastEthernet0/1" to "ip route 0.0.0.0 0.0.0.0 IP address of next hop" instead and see if it happens again?