summaryrefslogtreecommitdiff
path: root/apps/JAWS/server/svc.conf
blob: fdba6ab9c76942cd3d5d91c81d94da7207f6ab7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#
# -p	port number
# -n	threads in the server
# -f    thread activation flags
#       = THR_BOUND
#       = THR_DAEMON
#       = THR_DETACHED
#       = THR_NEW_LWP
# -t	threading strategy
#	= POOL -> thread pool
#	= PER_REQUEST -> thread per request
#	= THROTTLE -> thread per request with throttling
# -i    I/O strategy
#	= SYNCH
#	= ASYNCH
# -b	backlog value for listen ()
# -c  caching: NO_CACHE or CACHE
#
#
# Thread Pool, 20 unbound threads
# This is the baseline
static HTTP_Server "HTTP_Server -p 5432 -n 20 -i SYNCH -t POOL -b 50 -f THR_NEW_LWP"
#
#
# Start a baseline server without caching
#static HTTP_Server "HTTP_Server -p 5432 -n 20 -i SYNCH -t POOL -b 50 -f THR_NEW_LWP -c NO_CACHE"
#
#
# Thread Pool, 40 threads
#static HTTP_Server "HTTP_Server -p 5432 -n 40 -i SYNCH -t POOL -b 50 -f THR_NEW_LWP -f THR_BOUND"
#
#
# Thread-per-request, unlimited number of threads
#static HTTP_Server "HTTP_Server -p 5432 -i SYNCH -t PER_REQUEST -b 50 -f THR_NEW_LWP"
#
#
# Throttling, 40 threads
#static HTTP_Server "HTTP_Server -p 5432 -n 40 -i SYNCH -t THROTTLE -b 50 -f THR_NEW_LWP"
#

#
# Example for using HTTP_Server as a dynamic service
#
# For NT.
#dynamic HTTP_Server Service_Object * ./jaws.exe:_make_HTTP_Server() "HTTP_Server -p 5432 -n 20 -i SYNCH -t POOL -b 50 -f THR_NEW_LWP"

#
# For UNIX platforms.
#dynamic HTTP_Server Service_Object * ./main:_make_HTTP_Server() "HTTP_Server -p 5432  -n 20 -i SYNCH -t POOL -b 50 -f THR_NEW_LWP"