5.1.1 Resources used for deploying Web server and J2EE server on the same machine

This subsection describes the estimation of resources used for each OS when the Web server and J2EE server are deployed on the same 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

The following table describes the estimation of resources used in AIX:

Table 5-2 Estimation of resources used (In AIX)

System resourceParameterRequirementExample 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 + 5--
Number of threads--maximum-number-of-concurrently- processed-requests#2[Figure] 2 + 41 + number-of-J2EE-server-threads#3--
Number of file descriptorsnofilesnumber-of-J2EE-server-file-descriptors#3 + 76 + maximum-number-of-concurrently-processed- requests#2[Figure] 4/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 threads that can be processed concurrently in the Web server.
#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.

(2) In HP-UX

The following table describes the estimation of resources used in HP-UX:

Table 5-3 Estimation of resources used (In HP-UX)

System resourceParameterRequirementExample of option settings
Shared memoryshmmaxPrfTraceBufferSize#1[Figure] 1,024 + 18,496 + maximum-number-of-concurrently- processed-requests#2[Figure] 14 [Figure] 1,024kctune shmmax= 1073741824​
Number of processesnprocmaximum-number-of-concurrently-processed-requests#2[Figure] 2 + 5kctune nproc=4200
Number of threadsnkthreadmaximum-number-of-concurrently-processed-requests#2[Figure] 2 + 41 + number-of-J2EE-server-threads #3kctune nkthread= 8416
Number of file descriptorsnfilenumber-of-J2EE-server-file-descriptors#3 + 76 + maximum-number-of-concurrently-processed-requests#2[Figure] 4kctune 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.
#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.

(3) In Linux

The following table describes the estimation of resources used in Linux:

Table 5-4 Estimation of resources used (In Linux)

System resourceParameterRequirementExample of option settings
Shared memorySHMMAXPrfTraceBufferSize#1[Figure] 1,024 + 18,496 + maximum-number-of-concurrently- processed-requests#2[Figure] 14 [Figure] 1,024/proc/sys/kernel/shmmax
Number of processesthreads-max#3maximum-number-of-concurrently-processed-requests#2[Figure] 2 + 5/proc/sys/kernel/threads-max
Number of threadsthreads-max#3maximum-number-of-concurrently-processed-requests#2[Figure] 2 + 41 + number-of-J2EE-server- threads#4--
Number of file descriptorsfs.file-maxnumber-of-J2EE-server-file-descriptors#4 + 76 + maximum-number-of- concurrently-processed-requests#2[Figure] 4/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 maximum number of requests that can be processed concurrently in the Web server.
#3
Specify the total of number of processes and threads in the threads-max parameter.
#4
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

The following table describes the estimation of resources used in Solaris:

Table 5-5 Estimation of resources used (In Solaris)

System resourceParameterRequirementExample of option settings
Shared memoryshminfo_shmmaxPrfTraceBufferSize#1[Figure] 1,024 + 18,496 + maximum-number-of-concurrently- processed-requests#2[Figure] 14 [Figure] 1,024/etc/system
Number of processesmax_nprocsmaximum-number-of-concurrently-processed-requests#2[Figure] 2 + 5/etc/system
Number of threads--maximum-number-of-concurrently-processed-requests#2[Figure] 2 + 41 + number-of-J2EE-server- threads#3--
Number of file descriptorsrlim_fd_maxnumber-of- J2EE-server-file-descriptors#3 + 76 + maximum-number-of-concurrently-processed-requests#2[Figure] 4/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.
#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.