Sun Java System Web Server 6.1 SP10 Administrator's Configuration File Reference

nsfc.conf

Purpose

Sets file cache parameters. This file is present only if file cache parameters have been changed from their defaults.

Location

server_root/https-admserv/config

Syntax

parameter=value

See Also

Sun Java System Web Server 6.1 SP10 Performance Tuning, Sizing, and Scaling Guide

The following table describes properties in the nsfc.conf file. The left column lists the property names. The second column from the left lists allowed values. The third column from the left lists default values. The right column lists property descriptions.

Table 6–4 nsfc.conf Properties

Attribute  

Allowed Values  

Default Value  

Description  

FileCacheEnable

on, off

on

Enables the file cache. 

CacheFileContent

on, off

on

Enables caching of file contents, as well as file information for files smaller than MediumFileSizeLimit (smaller than SmallFileSizeLimit if TransmitFile is on).

MaxAge

Number of seconds 

30

The maximum age of a valid cache entry. This setting controls how long cached information is used once a file has been cached. An entry older than MaxAge is replaced by a new entry for the same file.

MediumFileSizeLimit

Limited by available memory 

537600 (525K)

(UNIX only) Maximum size of a file that can be cached as a memory-mapped file (if TransmitFile is off).

MediumFileSpace

Limited by available memory 

10485760(10 M)

Total size of all files that are cached as memory-mapped files (if TransmitFile is off).

SmallFileSizeLimit

Limited by available memory 

2048 (2K)

(UNIX only) Maximum size of a file that can be read into memory. 

SmallFileSpace

Limited by available memory 

1048576 (UNIX, 1 M), 0 (Windows)

Total size of all files that are read into memory. 

TransmitFile

on, off

on (Windows), off (UNIX)

Enables use of the TransmitFile system call. Not supported on IRIX, Compaq, Solaris, or Linux.

MaxFiles

 

1024

Maximum number of files in the file cache. 

HashInitSize

Limited by available memory 

0

Initial number of hash buckets. If 0, the number of hash buckets is dynamically determined as 2 * MaxFiles + 1.

CopyFiles

on, off

on

(Windows only) Prevents sharing violations by copying files to a temporary directory. 

TempDir

path 

<TempDir>/<server_id>-file-cache

Specifies a temporary directory for the file cache if CopyFiles is on. 

<TempDir> is the value of TempDir in the magnus.conf file. See TempDir

<server_id> is the server instance id.