Chapter 10, Configuring the Server for Performance
245
Using perfdump Statistics to Tune Your Server
Busy Functions
The default busy function returns a “503 Service Unavailable” response and logs
a message if
LogVerbose
is enabled. You may wish to modify this behavior
for your application. You can specify your own busy functions for any NSAPI
function in the
obj.conf
file by including a service function in the
configuration file in this format:
busy="<my-busy-function>"
For example, you could use this sample service function:
Service fn="send-cgi" busy="service-toobusy"
This allows different responses if the server become too busy in the course of
processing a request that includes a number of types (such as
Service
,
AddLog
, and
PathCheck
). Note that your busy function will apply to all
functions that require a native thread to execute when the default thread type is
non-native.
To use your own busy function instead of the default busy function for the
entire server, you can write an NSAPI init function that includes a
func_insert
call as shown below:
extern "C" NSAPI_PUBLIC int my_custom_busy_function(pblock *pb, Session *sn,
Request *rq);
my_init(pblock *pb, Session *, Request *)
func_insert("service-toobusy", my_custom_busy_function);
Busy functions are never executed on a pool thread, so you must be careful to
avoid using function calls that could cause the thread to block.
Asynchronous DNS Lookup (Unix)
You can configure the server to use Domain Name System (DNS) lookups
during normal operation. By default, DNS is not enabled; if you enable DNS,
the server looks up the host name for a system’s IP address. Although DNS
lookups can be useful for server administrators when looking at logs, they can
Summary of Contents for Netscape Enterprise Server
Page 30: ...Contacting Technical Support 30 Netscape Enterprise Server Administrator s Guide ...
Page 32: ...32 Netscape Enterprise Server Administrator s Guide ...
Page 56: ...Sending Error Information to Netscape 56 Netscape Enterprise Server Administrator s Guide ...
Page 66: ...66 Netscape Enterprise Server Administrator s Guide ...
Page 112: ...Managing a Preferred Language List 112 Netscape Enterprise Server Administrator s Guide ...
Page 158: ...158 Netscape Enterprise Server Administrator s Guide ...
Page 182: ...Using the Watchdog uxwdog Process Unix 182 Netscape Enterprise Server Administrator s Guide ...
Page 196: ...Viewing Events Windows NT 196 Netscape Enterprise Server Administrator s Guide ...
Page 218: ...Enabling the Subagent 218 Netscape Enterprise Server Administrator s Guide ...
Page 266: ...266 Netscape Enterprise Server Administrator s Guide ...
Page 302: ...Enabling WAI Services 302 Netscape Enterprise Server Administrator s Guide ...
Page 310: ...310 Netscape Enterprise Server Administrator s Guide ...
Page 446: ...Customizing the Search Interface 446 Netscape Enterprise Server Administrator s Guide ...
Page 448: ...448 Netscape Enterprise Server Administrator s Guide ...
Page 454: ...Responses 454 Netscape Enterprise Server Administrator s Guide ...
Page 464: ...Referencing ACL Files in obj conf 464 Netscape Enterprise Server Administrator s Guide ...
Page 504: ...504 Netscape Enterprise Server Administrator s Guide ...