Sun Microsystems 7 Security Camera User Manual


 
Tuning MMapSessionManager (UNIX/Linux)
The following example describes the eect on process size when conguring the
persistence-type="mmap" using the manager-properties properties. For more information,
see “MMap Session Manager (UNIX Only)” in Sun Java System Web Server 7.0 Update 1
Developer’s Guide to Java Web Applications.
maxSessions = 1000
maxValuesPerSession = 10
maxValueSize = 4096
This example would create a memory mapped le of size 1000 X 10 X 4096 bytes, or ~40 MB. As
this is a memory mapped le, the process size will increase by 40 MB upon startup. The larger
the values you set for these parameters, the greater the increase in process size.
Tuning CGI Stub Processes (UNIX/Linux)
In Web Server, the CGI engine creates CGI stub processes as needed. On systems that serve a
large load and rely heavily on CGI-generated content, it is possible for the CGI stub processes to
consume all system resources. If this is happening on your server, the CGI stub processes can be
tuned to restrict how many new CGI stub processes can be spawned, their timeout value, and
the minimum number of CGI stub process that run at any given moment.
Note If you have an init-cgi function in the magnus.conf le and you are running in
multi-process mode, you must add LateInit = yes to the init-cgi line.
Tune the following settings to control CGI stubs. These settings are on the conguration's
Performance Tab CGI sub tab.
Minimum Stubs Size: Controls the number of processes that are started by default. The rst
CGI stub process is not started until a CGI program has been accessed. The default value is
0. If you have an init-cgi directive in the magnus.conf le, the minimum number of CGI
stub processes are spawned at startup.
Maximum Stub Size: Controls the maximum number of CGI stub processes the server can
spawn. This is the maximum concurrent CGI stub processes in execution, not the
maximum number of pending requests. The default value is 16 and should be adequate for
most systems. Setting this too high might actually reduce throughput.
CGI Stub Timeout: Causes the server to kill any CGI stub processes that have been idle for
the number of seconds set by this directive. Once the number of processes is at the
minimum stubs size, it does not kill any more processes. The default is 30.
CGI Timeout: Limits the maximum time in seconds that CGI processes can run. The default
is –1, which means there is no timeout.
TuningCGIStubProcesses(UNIX/Linux)
Chapter2 • TuningSunJavaSystemWebServer 81