Leaflet
8-77
思科 ASA 系列命令参考,A 至 H 命令
第 8 章 client-access-rule 至 crl enforcenextupdate 命令
cpu hog granular-detection
cpu hog granular-detection
要在短期内提供实时占用检测并设置 CPU 占用阈值,请在特权 EXEC 模式下使用 CPU HOG
granular-detection 命令。
cpu hog granular-detection [count number] [threshold value]
语法说明
默认值 没有默认行为或值。
命令模式 下表展示可输入此命令的模式:
命令历史
使用指南 cpu hog granular-detection 命令每隔 10 毫秒中断当前代码执行并总计中断数。CPU 占用的中断
检查。如果存在,则登录。此命令可缩短数据路径中 CPU 占用检测的时间间隔。
每个基于安排的占用最多与 5 个基于中断的占用条目关联;每个条目可最多有 3 个回溯。无法覆
盖基于中断的占用;如果没有空间,将丢弃新的。根据 LRU 策略仍可重用基于安排的占用,且
当时会清除其关联的基于中断的占用。
注意 具有小 UDP 数据包的 ASA 5585-X 的性能可能会受到影响。
示例 以下示例展示如何触发 CPU 占用检测:
ciscoasa# cpu hog granular-detection count 1000 threshold 10
Average time spent on 1000 detections is 10 seconds, and it may take longer under heavy
traffic.
Please leave time for it to finish and use show process cpu-hog to check results.
count number
指定已执行的代码执行中断的数量。有效值为 1 到 10000000。默认值
和建议值均为 1000。
threshold value
范围为 1 至 100。如果未设置,则使用默认值,平台之间有所不同。
命令模式
防火墙模式 安全情景
路由 透明 单个
多个
情景 系统
特权 EXEC
•••••
版本 修改
9.2(1)
引入了此命令。