Dynamips crashed when issuing match protocol command

I am using INE dynamips .net file.  RAM=128, running 2 instances, IOS ver: c3725-adventerprisek9-mz.124-15.T10; PC : 8GB, Quard dual CPU

Router crashed when issuing match protocol command, any idea to fix it?  I searched the forums but it seems no one has encountered the same problem.

Rack1R1(config)#class-map MATCH_PROTOCOL
Rack1R1(config-cmap)#match pro
Rack1R1(config-cmap)#match protocol icmp
% NBAR ERROR: due to memory problem, parsing stopped
% NBAR Error : Activation failed due to insufficient dynamic memory
Rack1R1(config-cmap)#
*Mar  1 01:04:11.559: %SYS-2-MALLOCFAIL: Memory allocation of 10260 bytes failed from 0x628E3D2C, alignment 0
Pool: Processor  Free: 26028  Cause: Memory fragmentation
Alternate Pool: None  Free: 0  Cause: No Alternate pool
 -Process= "Exec", ipl= 0, pid= 92,  -Traceback= 0x61467B24 0x600165C4 0x6001C400 0x6001C9F4 0x6362D69C 0x628E3D34 0x628C26F8 0x628C3030 0x628C3B70 0x628F6DB4 0x629017DC 0x628EEA74 0x628ED678 0x614B3B74 0x614D7684 0x62AEAD7C
Rack1R1(config-cmap)#
*Mar  1 01:04:11.563: %NBAR-2-NOMEMORY: No memory available for StILE lmalloc,  -Traceback= 0x61467B24 0x628E3D50 0x628C26F8 0x628C3030 0x628C3B70 0x628F6DB4 0x629017DC 0x628EEA74 0x628ED678 0x614B3B74 0x614D7684 0x62AEAD7C 0x62AEAD60
Rack1R1(config-cmap)#

 

Comments

  • Yikes - I got so frustrated trying to fix this  - I switched images. 

  • I would recommend running with RAM=192. With 8 GB of RAM available, you could easily bump this up without having any problems. Make sure you blow away any left over files in your working directory after you switch the setting. Then restart the dynamips.

  • jchanjchan ✭✭

    Thanks!

    I get it to work;

    first, set RAM = 192 , deleted leftover config;

    second, disable mmap = True;

    third, set sparsemem = true.

    match protocol command is now working fine.

    Anthony - what ios image you switched to?  just curious.  I have a low end PC with less memory, i would like to run dynamips on it.

     

  • This is awesome news - thanks for publishing the fix here.

    I just realized the imaged that I moved TO - is basically yours!

     

    c3725-adventerprisek9-mz.124-15.T9.bin 

     

    I have not had to modify anything in order to use NBAR. I guess it is PC dependent <shrug>

     

    I am very ignorant on Dynamips.....

  • Yeah Dynamips is a great product as long as you keep its limitations in mind. It's far from a polished application and always seems like its on a knife's edge between working right and crashing. That being said, once you get rid of its demons it can be about 95% stable.

    I hope one day that Cisco releases a virtual pod product that can run the IOS 15 code. I'd like see it priced within reason and/or charge per hour of runtime.

     

Sign In or Register to comment.