06-26-2008 11:14 PM - edited 03-05-2019 11:51 PM
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 -
06-27-2008 01:37 AM
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
06-27-2008 01:33 PM
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
06-28-2008 08:25 AM
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
* 7 vty 1
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
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.
06-28-2008 12:34 PM
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
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: