
Tuning
Higherhit ratios result in better performance. To maximize the hit ratio, see the tuning
informationfor “Acceleratable Responses” on page 61.
FileCache EnabledIfthe cache is disabled, the rest of this section is not displayed in perdump. In the Admin
Console,the File Cache Statistics section shows zeros for the values.
Tuning
Thecache is enabled by default. You can disable it in the Admin Console by deselecting the File
CacheEnabled box on the conguration's Performance tab ⇒Cache sub tab, under File Cache.
Todisable it using the command-line-interface, use wadm set-file-cache-prop and set the
enabledproperty to false.
FileCache EntriesThenumber of current cache entries and the maximum number of cache entries are both
displayedin perfdump. In the Admin Console, they are called the Number of Entries and the
MaximumCache Size. A single cache entry represents a single URI.
Tuning
Youcan set the maximum number of cached entries in the Admin Console in the Maximum
Entrieseld on the conguration's Performance tab ⇒Cache tab, under File Cache. In the
command-lineinterface, use wadm set-file-cache-prop and set the max-entries property.
Thedefault is 1024. The range of values is 1-1048576.
FileCache Hit Ratio (Cache Hits / Cache Lookups)Thehit ratio available through perfdump gives you the number of le cache hits compared to
cachelookups. Numbers approaching 100% indicate that the le cache is operating eectively,
whilenumbers approaching 0% could indicate that the le cache is not serving many requests.
Togure this number yourself using the statistics provided through the Admin Console, divide
theTotal Cache Hits by the sum of the Total Cache Hits and the Total Cache Misses.
Thissetting is not tunable.
MaximumAgeThiseld displays the maximum age of a valid cache entry. The parameter controls how long
cachedinformation is used after a le has been cached. An entry older than the maximum age is
replacedby a new entry for the same le.
UsingMonitoringData to TuneYour Server
SunJavaSystem Web Server 7.0 Update 1 Performance Tuning,Sizing, and Scaling Guide •62