uCosminexus Application Server, System Design Guide

[Contents][Glossary][Index][Back][Next]

5.1.2 Resources used when Web server and J2EE server are deployed on different machines

This subsection describes the estimation of resources used for each OS when the Web server and J2EE server are deployed on different machines. When deploying the Web server and J2EE server on different machines, estimate the resources used respectively for the Web server machine and the Application Server machine.

Note that the Example of option settings in each table of estimation of resources used differs according to the OS and the kernel versions in use. Reference the manual of the OS being used and set up the estimates based on the estimation formula in the table. The settings are not required when the corresponding kernel parameter is not applicable in the OS being used.

Organization of this subsection
(1) In AIX
(2) In HP-UX
(3) In Linux
(4) In Solaris

(1) In AIX

This section describes the estimation of resources used by the Web server machine and the Application Server machine in AIX.

(a) Estimation of resources used by the Web server machine

The following table describes the estimation of resources used by the Web server machine:

Table 5-6 Estimation of resources used by the Web server machine (In AIX)

System resource Parameter Requirement Example of option settings
Shared memory -- PrfTraceBufferSize#1 [Figure] 1,024 + 18,496 + maximum-number-of-concurrently- processed-requests#2 [Figure] 14 [Figure] 1,024 --
Number of processes -- maximum-number-of-concurrently- processed-requests#2 [Figure] 2 + 4 --
Number of threads -- maximum-number-of-concurrently-processed- requests#2 [Figure] 2 + 35 --
Number of file descriptors nofiles maximum-number-of-concurrently-processed-
requests#2 [Figure] 4 + 75
/etc/security/limits

Legend:
--: Not applicable.

#1
Specify the buffer memory size of performance tracer in the range of 512 kilobytes to 102,400 kilobytes. For details about PrfTraceBufferSize, see 4.15 Parameters that can be specified in the logical performance tracer in the uCosminexus Application Server Definition Reference Guide.

#2
Specify the maximum number of requests that can be processed concurrently in the Web server.

(b) Estimation of resources used by the Application Server machine

The following table describes the estimation of resources used by the Application Server machine:

Table 5-7 Estimation of resources used by the Application Server machine (In AIX)

System resource Parameter Requirement Example of option settings
Shared memory -- PrfTraceBufferSize#1 [Figure] 1,024 + 18,496 --
Number of processes -- 4 --
Number of threads -- number-of-J2EE-server-threads #2 + 34 --
Number of file descriptors nofiles number-of-J2EE-server-file-descriptors#2 + 43 /etc/security/limits

Legend:
--: Not applicable.

#1
Specify the buffer memory size of performance tracer in the range of 512 kilobytes to 102,400 kilobytes. For details about PrfTraceBufferSize, see 4.15 Parameters that can be specified in the logical performance tracer in the uCosminexus Application Server Definition Reference Guide.

#2
For calculating the number of threads and file descriptors of the J2EE server, see 5.2.1 Estimating the resources used by J2EE server.

(2) In HP-UX

This section describes the estimation of resources used by the Web server machine and the Application Server machine in HP-UX:

(a) Estimation of resources used by the Web server machine

The following table describes the estimation of resources used by the Web server machine:

Table 5-8 Estimation of resources used by the Web server machine (In HP-UX)

System resource Parameter Requirement Example of option settings
Shared memory shmmax PrfTraceBufferSize#1 [Figure] 1,024 + 18,496 + maximum-number-of-concurrently- processed-requests#2 [Figure] 14 [Figure] 1,024 kctune shmmax= 1073741824
Number of processes nproc maximum-number-of-concurrently-processed-requests#2 [Figure] 2 + 4 kctune nproc=4200
Number of threads nkthread maximum-number-of-concurrently-processed-requests#2 [Figure] 2 + 35 kctune nkthread= 8416
Number of file descriptors nfile maximum-number-of-concurrently-processed-requests#2 [Figure] 4 + 75 kctune nfile= 65536

#1
Specify the buffer memory size of performance tracer in the range of 512 kilobytes to 102,400 kilobytes. For details about PrfTraceBufferSize, see 4.15 Parameters that can be specified in the logical performance tracer in the uCosminexus Application Server Definition Reference Guide.

#2
Specify the maximum number of requests that can be processed concurrently in the Web server.

(b) Estimation of resources used by the Application Server machine

The following table describes the estimation of resources used by the Application Server machine:

Table 5-9 Estimation of resources used by the Application Server machine (In HP-UX)

System resource Parameter Requirement Example of option settings
Shared memory shmmax PrfTraceBufferSize#1 [Figure] 1,024 + 18,496 kctune shmmax= 1073741824
Number of processes nproc 4 kctune nproc=4200
Number of threads nkthread number-of-J2EE-server-threads #2 + 34 kctune nkthread= 8416
Number of file descriptors nfile number-of-J2EE-server-file-descriptors#2 + 43 kctune nfile= 65536

#1
Specify the buffer memory size of performance tracer in the range of 512 kilobytes to 102,400 kilobytes. For details about PrfTraceBufferSize, see 4.15 Parameters that can be specified in the logical performance tracer in the uCosminexus Application Server Definition Reference Guide.

#2
For calculating the number of threads and file descriptors of the J2EE server, see 5.2.1 Estimating the resources used by J2EE server.

(3) In Linux

This section describes the estimation of resources used by the Web server machine and the Application Server machine in Linux.

(a) Estimation of resources used by the Web server machine

The following table describes the estimation of resources used by the Web server machine:

Table 5-10 Estimation of resources used by the Web server machine (In Linux)

System resource Parameter Requirement Example of option settings
Shared memory SHMMAX PrfTraceBufferSize#1 [Figure] 1,024 + 18,496 + maximum-number-of-concurrently- processed-requests#2 [Figure] 14 [Figure] 1,024 /proc/sys/kernel/shmmax
Number of processes threads-max#3 maximum-number-of-concurrently-processed-requests#2 [Figure] 2 + 4 /proc/sys/kernel/threads-max
Number of threads threads-max#3 maximum-number-of-concurrently-processed-requests#2 [Figure] 2 + 35 --
Number of file descriptors fs.file-max maximum-number-of-concurrently-processed-requests#2 [Figure] 4 + 75 /proc/sys/fs/file-max

Legend:
--: Not applicable.

#1
Specify the buffer memory size of performance tracer in the range of 512 kilobytes to 102,400 kilobytes. For details about PrfTraceBufferSize, see 4.15 Parameters that can be specified in the logical performance tracer in the uCosminexus Application Server Definition Reference Guide.

#2
Specify maximum number of requests that can be processed concurrently in the Web server.

#3
Specify total number of processes and threads in the threads-max parameter.

(b) Estimation of resources used by the Application Server machine

The following table describes the estimation of resources used by the Application Server machine:

Table 5-11 Estimation of resources used by the Application Server machine (In Linux)

System resource Parameter Requirement Example of option settings
Shared memory SHMMAX PrfTraceBufferSize#1 [Figure] 1,024 + 18,496 /proc/sys/kernel/shmmax
Number of processes threads-max#2 4 /proc/sys/kernel/threads-max
Number of threads threads-max#2 number-of-J2EE-server-threads#3 + 34 --
Number of file descriptors fs.file-max number-of-J2EE-server-file-descriptors#3 + 43 /proc/sys/fs/file-max

Legend:
--: Not applicable.

#1
Specify the buffer memory size of performance tracer in the range of 512 kilobytes to 102,400 kilobytes. For details about PrfTraceBufferSize, see 4.15 Parameters that can be specified in the logical performance tracer in the uCosminexus Application Server Definition Reference Guide.

#2
Specify the total of number of processes and threads in the threads-max parameter.

#3
For calculating the number of threads and file descriptors of the J2EE server, see 5.2.1 Estimating the resources used by J2EE server.

(4) In Solaris

This section describes the estimation of resources used by the Web server machine and Application Server machine in Solaris.

(a) Estimation of resources used by the Web server machine

The following table describes the estimation of resources used by the Web server machine:

Table 5-12 Estimation of resources used by the Web server machine (In Solaris)

System resource Parameter Requirement Example of option settings
Shared memory shminfo_shmmax PrfTraceBufferSize#1 [Figure] 1,024 + 18,496 + maximum-number-of-concurrently- processed-requests#2 [Figure] 14 [Figure] 1,024 /etc/system
Number of processes max_nprocs maximum-number-of-concurrently-processed-requests#2 [Figure] 2 + 4 /etc/system
Number of threads -- maximum-number-of-concurrently-processed-requests#2 [Figure] 2 + 35 --
Number of file descriptors rlim_fd_max maximum-number-of-concurrently-processed-requests#2 [Figure] 4 + 75 /etc/system

Legend:
--: Not applicable.

#1
Specify the buffer memory size of performance tracer in the range of 512 kilobytes to 102,400 kilobytes. For details about PrfTraceBufferSize, see 4.15 Parameters that can be specified in the logical performance tracer in the uCosminexus Application Server Definition Reference Guide.

#2
Specify the maximum number of requests that can be processed concurrently in the Web server.

(b) Estimation of resources used by the Application Server machine

The following table describes the estimation of resources used by the Application Server machine:

Table 5-13 Estimation of resources used by the Application Server machine (In Solaris)

System resource Parameter Requirement Example of option settings
Shared memory shminfo_shmmax PrfTraceBufferSize#1 [Figure] 1,024 + 18,496 /etc/system
Number of processes max_nprocs 4 /etc/system
Number of threads -- number-of-J2EE-server-threads#2 + 34 --
Number of file descriptors rlim_fd_max number-of-J2EE-server-file-descriptors#2 + 43 /etc/system

Legend:
--: Not applicable.

#1
Specify the buffer memory size of performance tracer in the range of 512 kilobytes to 102,400 kilobytes. For details about PrfTraceBufferSize, see 4.15 Parameters that can be specified in the logical performance tracer in the uCosminexus Application Server Definition Reference Guide.

#2
For calculating the number of threads and file descriptors of the J2EE server, see 5.2.1 Estimating the resources used by J2EE server.