Sun GlassFish Enterprise Server v2.1.1 Administration Reference

Attributes

The following table describes attributes for the http-file-cache element.

Table 1–70 http-file-cache Attributes

Attribute 

Default 

Description 

globally-enabled

false (developer profile)

true (cluster and enterprise profiles)

(optional) If true, enables the file cache.

file-caching-enabled

false (developer profile)

true (cluster and enterprise profiles)

(optional) If true, enables caching of the file content if the file size exceeds the small-file-size-limit-in-bytes.

max-age-in-seconds

30

(optional) Specifies the maximum age of a file cache entry. 

medium-file-size-limit-in-bytes

537600

(optional) Specifies the maximum size of a file that can be cached as a memory mapped file. 

medium-file-space-in-bytes

10485760

(optional) Specifies the total size of all files that are cached as memory mapped files. 

small-file-size-limit-in-bytes

2048

(optional) Specifies the maximum size of a file that can be read into memory. 

small-file-space-in-bytes

1048576

(optional) Specifies the total size of all files that are read into memory. 

file-transmission-enabled

false

(optional) If true, enables the use of TransmitFileSystem calls. Meaningful only for Windows.

max-files-count

1024

(optional) Specifies the maximum number of files in the file cache. 

hash-init-size

0

(optional) Specifies the initial number of hash buckets.