Sun GlassFish Enterprise Server v2.1.1 Administration Reference

Attributes

The following table describes attributes for the overload-protection-service element.

Table 1–142 overload-protection-service Attributes

Attribute 

Default 

Description 

enabled

false

If true, the overload protection manager is enabled and operates according to cpu-overload-protection, memory-overload-protection, and other overload-protection-service attributes. Overload regulation protects the HTTP container from too high CPU or memory usage.

cpu-overload-protection

false

If true, CPU overload protection is enabled. Applicable only if enabled is set to true.

memory-overload-protection

false

If true, memory overload protection is enabled. Applicable only if enabled is set to true.

cpu-http-threshold

70

Specifies the CPU usage threshold level for HTTP requests. Allowed values are 0 to 100. Any SIP requests received when the system is operating beyond this threshold are responded to with a 503 error. Applicable only if cpu-overload-protection is set to true.

mem-http-threshold

85

Specifies the memory usage threshold level for HTTP requests. Allowed values are 0 to 100. Any SIP requests received when the system is operating beyond this threshold are responded to with a 503 error. Applicable only if memory-overload-protection is set to true.

cpu-mm-threshold

99

Specifies the CPU usage threshold level when all messages are dropped. Allowed values are 0 to 100. Applicable only if cpu-overload-protection is set to true.

mem-mm-threshold

99

Specifies the memory usage threshold level when all messages are dropped. Allowed values are 0 to 100. Applicable only if memory-overload-protection is set to true.

sample-rate

2

Specifies the sample rate in seconds for updating threshold levels. Allowed values are 1 to 120 seconds.

number-of-samples

5

Specifies the number of consecutive samples needed before a threshold is raised. Allowed values are 2 to 20.

retry-after-interval

10

Specifies the interval in seconds between response retries. This is part of the retry-after header in a 503 response.

cpu-overload-activation-algorithm

MEDIAN

Specifies the activation algorithm for CPU overload protection. Allowed values are MEDIAN and CONSECUTIVE.

cpu-overload-deactivation-algorithm

CONSECUTIVE

Specifies the deactivation algorithm for CPU overload protection. Allowed values are MEDIAN and CONSECUTIVE.

mem-overload-activation-algorithm

MEDIAN

Specifies the activation algorithm for memory overload protection. Allowed values are MEDIAN and CONSECUTIVE.

mem-overload-deactivation-algorithm

CONSECUTIVE

Specifies the deactivation algorithm for memory overload protection. Allowed values are MEDIAN and CONSECUTIVE.

mm-threshold-http-wait-time

2

Specifies the time in seconds for which a thread is held before being released back to the thread pool. Used in the context of maximum overload for HTTP requests.