cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
681
Views
0
Helpful
4
Replies

Re : To check on memory on switches/router ...

sanjaynadarajah
Level 1
Level 1

Hi,

I would like to check how does one check if there is a memory issue on the switch/router ?

What commands can I use to check :-

i) memory leak

ii) buffer leak

iii) overall memory usage on the

router ....

I always use the 'sh processes memory' command to check on memory, which othe commands can supplement this to check on the switch/router memory ?

Router #sh processes memory

Total: 232163224, Used: 109466664, Free: 122696560

Thanking you in advance,

Cheers,

- sn -

4 Replies 4

Nagendra Kumar Nainar
Cisco Employee
Cisco Employee

You can use "show mem debug leaks" command to check the memory leak.

To check memory used by specific process, you can use "show memory summary"

HTH,

Nagendra

I am a curious guy, and went out writing the "show mem debug leak" command....

...and FREEZE my comnand line...

I opened another command line, to my main switch, and WOW....

"SW1#show processes cpu

CPU utilization for five seconds: 99%/100%; one minute: 80%; five minutes: 29%

"

Do it carefully :)

How do i resoved ? Clear line who performed the 1st command.

Best Regards,

Petrónio

Look at the "who" command to see who is connected on what line.

Look at the "disconnect" command options to disconnect a user connected through another line.

e.g.:

router#who

Line User Host(s) Idle Location

5 aux 0 Modem Autoconfigure 00:00:03

6 vty 0 idle 00:00:30 nms

* 7 vty 1 idle 00:00:01 nms

Interface User Mode Idle Peer Address

router#disconnect ssh vty 0

router#who

Line User Host(s) Idle Location

5 aux 0 Modem Autoconfigure 00:00:00

* 7 vty 1 idle 00:00:01 nms

Interface User Mode Idle Peer Address

You may need to use different syntax if it's not an SSH connection (i.e.: use command help).

The other connection will likely timeout anyway, unless you have not configured timeouts for your lines.

Router_1#who

Line User Host(s) Idle Location

1 vty 0 idle 00:02:09 172.20.0.180 -- > This was the 1st connection ( Stucked ), before "disconnected"

* 2 vty 1 idle 00:00:07 172.20.0.180 -- > This was the 2nd connection i used for "disconnect" the previous one.

Interface User Mode Idle Peer Address

Router_1#clear line 1

[confirm]

[OK]

Best Regards,

Petrónio

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: