Chapter 10, Configuring the Server for Performance
255
Improving Servlet Performance
threads which may be doing other processing can be suspended by the garbage
collector arbitrarily. Thread pools can be used to eliminate this side effect for
othersubsystems.
Thread Pools
Enterprise Server 4.0 allows to specify a number of configurable native thread
pools, by adding the following directives to the
obj.conf
:
Init fn="thread-pool-init" name=name_of_the_pool MaxThreads=n MinThreads=n
QueueSize=n StackSize=n
Pool must be declared before it’s used. To use the pool add
pool=
name_of_the_pool
parameter to load-modules directive of the
appropriate subsystem. The older parameter
NativeThread=yes
will always
engage one default native pool, called NativePool.
In addition to configuring the native pool parameters on Windows NT using the
environmental variables beginning with “NSCP_POOL” in Enterprise Server 3.6,
the following parameters can be added to
magnus.conf
for convenience:
NativePoolMinThreads.
Default value is 1.
NativePoolMaxThreads.
Default value is 128.
NativePoolQueueSize.
Default value is unlimited.
NativePoolStackSize.
Default value is the same as the default value
for the OS.
Any of the parameters can be omitted to reflect the default behavior.
Native pool on Unix is normally not engaged, as all threads are OS-level
threads. Using native pools on Unix may introduce a small performance
overhead as they’ll require an additional context switch, however they can be
used to localize jvm.stickyAttach effect or for other purposes, such as resource
control/management or to emulate single-threaded behavior of plugins (by
setting
maxThreads=1
).
On Windows NT, however, at least the default native pool is always being used
and Enterprise Server uses fibers (user-scheduled threads) for initial request
processing. Using custom/additional pools on Windows NT will introduce no
additional overhead.
Содержание 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 ...