Sun GlassFish Communications Server 2.0 管理ガイド

CPU 過負荷保護

Communications Server では、CPU の負荷に基づいて、受信 HTTP および SIP 要求を規制できます。

CPU 過負荷保護を有効にするには、cpu-overload-protection 属性を true に設定します。デフォルトでは、この値は false に設定されています。次のコマンドを使用して、この属性を設定します。

asadmin set config.overload-protection-service.cpu-overload-protection=true

過負荷保護の設定を表示するには、次のコマンドを使用します。

asadmin get config.overload-protection-service.*


config1.overload-protection-service.cpu-http-threshold = 70
config1.overload-protection-service.cpu-ir-threshold = 70
config1.overload-protection-service.cpu-mm-threshold = 99
config1.overload-protection-service.cpu-overload-activation-algorithm = MEDIAN
config1.overload-protection-service.cpu-overload-deactivation-algorithm = CONSECUTIVE
config1.overload-protection-service.cpu-overload-protection = true
config1.overload-protection-service.cpu-sr-threshold = 90
config1.overload-protection-service.number-of-samples = 5
config1.overload-protection-service.retry-after-interval = 10
config1.overload-protection-service.sample-rate = 2

CPU 過負荷保護の属性は次のとおりです。

これらの値を表示および設定するには、管理コンソールで「設定」—>「過負荷保護」ノードを使用するか、asadmin getset コマンドを使用します。

たとえば、cpu-mm-threshold プロパティーの値は、次のコマンドを使用して設定できます。

asadmin set config.overload-protection-service.cpu-mm-threshold =80