Sun GlassFish Communications Server 2.0 Administration Guide

CPU Overload Protection

Communications Server enables you to regulate incoming HTTP and SIP requests based on the CPU load.

To enable CPU overload protection, set the cpu-overload-protection attribute to true. By default, this value this set to false. Use the following command to set this attribute:

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

To view the Overload Protection settings, use the following command:

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

The CPU Overload Protection attributes provide the following uses:

To view and set these values, you can use the Configuration —> Overload Protection node in the Admin Console or the asadmin get and set commands.

For example, you can use the following command to set the value of the cpu-mm-threshold property:

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