Improving Servlet Performance
254
Netscape Enterprise Server Administrator’s Guide
MaxAge
Set
MaxAge
based on whether the content is updated (existing files are
modified) on a regular schedule or not. For example, if content is updated four
times a day at regular intervals,
MaxAge
could be set to 21600 seconds (6
hours). Otherwise, consider setting
MaxAge
to the longest time you are willing
to serve the previous version of a content file, after the file has been modified.
FlushInterval
Set
FlushInterval
to a short enough time that the cache does not become
full of expired entries.
SmallFileSizeLimit
The idea of distinguishing between small files and medium files is to avoid
wasting part of many pages of virtual memory when there are lots of small files.
So the
SmallFileSizeLimit
would typically be a slightly lower value than
the VM page size.
Improving Servlet Performance
The use of NSAPI cache will improve servlet performance in cases where the
obj.conf
configuration file has many directives. To enable NSAPI cache
inlcude the following line in
obj.conf
:
Init fn="nsapi-cache-init" enable=true
It’s advisable to have servlet engine
NameTrans
(
NameTrans
fn="NSServletNameTrans" name="servlet"
) to be the first in the list.
It uses highly-optimized URI cache for loaded servlets and will return
REQ_PROCEED
if the match is found, thus eliminating the need of other
NameTrans
directives to be executed.
jvm.conf
/
jvm12.conf
has a configuration parameter, called
jvm.stickyAttach. Setting the value of this parameter to “1” will cause threads to
remember that they are attached to the JVM, thus speeding up request
processing by eliminating
AttachCurrentThread
and
DetachCurrentThread
calls. It can however have a side-effect as recycled
Содержание Netscape Enterprise Server
Страница 30: ...Contacting Technical Support 30 Netscape Enterprise Server Administrator s Guide ...
Страница 31: ...Part 1 Server Basics 31 1 Server Basics Introduction to Enterprise Server Administering Enterprise Servers ...
Страница 32: ...32 Netscape Enterprise Server Administrator s Guide ...
Страница 56: ...Sending Error Information to Netscape 56 Netscape Enterprise Server Administrator s Guide ...
Страница 64: ...Migrating a Server From a Previous Version 64 Netscape Enterprise Server Administrator s Guide ...
Страница 66: ...66 Netscape Enterprise Server Administrator s Guide ...
Страница 112: ...Managing a Preferred Language List 112 Netscape Enterprise Server Administrator s Guide ...
Страница 158: ...158 Netscape Enterprise Server Administrator s Guide ...
Страница 182: ...Using the Watchdog uxwdog Process Unix 182 Netscape Enterprise Server Administrator s Guide ...
Страница 196: ...Viewing Events Windows NT 196 Netscape Enterprise Server Administrator s Guide ...
Страница 218: ...Enabling the Subagent 218 Netscape Enterprise Server Administrator s Guide ...
Страница 266: ...266 Netscape Enterprise Server Administrator s Guide ...
Страница 302: ...Enabling WAI Services 302 Netscape Enterprise Server Administrator s Guide ...
Страница 310: ...310 Netscape Enterprise Server Administrator s Guide ...
Страница 390: ...Customizing the Web Publisher User Interface 390 Netscape Enterprise Server Administrator s Guide ...
Страница 446: ...Customizing the Search Interface 446 Netscape Enterprise Server Administrator s Guide ...
Страница 448: ...448 Netscape Enterprise Server Administrator s Guide ...
Страница 454: ...Responses 454 Netscape Enterprise Server Administrator s Guide ...
Страница 464: ...Referencing ACL Files in obj conf 464 Netscape Enterprise Server Administrator s Guide ...
Страница 504: ...504 Netscape Enterprise Server Administrator s Guide ...