The following subsection describes the estimation of resources used for CTM, for each OS.
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.
The following table describes the estimation of resources used for CTM:
Table 5-24 Estimation of resources used for CTM (In AIX)
System resource | Parameter | Requirement | Example of option settings |
---|---|---|---|
Shared memory | -- | PrfTraceBufferSize#1 ![]() | -- |
Number of processes | -- | 7 + number-of-J2EE-servers#3 | -- |
Number of threads | -- | 72 + (number-of-J2EE-server-threads#4 + 7) ![]() | -- |
Number of file descriptors | nofiles | 88 + (number-of-J2EE-server-file-descriptors#4 + 6) ![]() | /etc/security/limits |
You must calculate the shared memory of the CTM domain manager and CTM daemon to calculate file size of shared memory. The respective formula for calculations is as follows:
Use the following value for variable values in the calculations formula. For details about the parameters starting with ctm., see 4.18 Parameters that can be specified in the logical CTM in the uCosminexus Application Server Definition Reference Guide.
The formula for calculating the file size for the shared memory of the CTM domain manager is as follows:
For the CTM daemon, you must secure files for shared memory of fixed length and files for shared memory of variable lengths in each CTM daemon. The formula for the respective calculations is as follows:
For calculating the number of threads and file descriptors, you must calculate the number of threads and file descriptors required in the CTM daemon. The formula for the respective calculations is as follows:
The following table describes the estimation of resources used for CTM:
Table 5-25 Estimation of resources used for CTM (In HP-UX)
System resource | Parameter | Requirement | Example of option settings |
---|---|---|---|
Shared memory | shmmax | PrfTraceBufferSize#1 ![]() | kctune shmmax= 1073741824 |
Number of processes | nproc | 7 + number-of-J2EE-servers#3 | kctune nproc=4200 |
Number of threads | nkthread | 72 +(number-of-J2EE-server-threads#4 + 7)![]() | kctune nkthread= 8416 |
Number of file descriptors | nfile | 88 + (number-of-J2EE-server-file-descriptors#4 + 6) ![]() | kctune nfile= 65536 |
The following table describes the estimation of resources used for CTM:
Table 5-26 Estimation of resources used for CTM (In Linux)
System resource | Parameter | Requirement | Example of option settings |
---|---|---|---|
Shared memory | SHMMAX | PrfTraceBufferSize#1 ![]() | /proc/sys/kernel/shmmax |
Number of processes | threads-max | 7 + number-of-J2EE-servers#3 | /proc/sys/kernel/threads-max |
Number of threads | threads-max | 72 + (number-of-J2EE-server-threads#4 + 7)![]() | -- |
Number of file descriptors | fs.file-max | 88 + (number-of-J2EE-server-file-descriptors#4 + 6) ![]() | /proc/sys/fs/file-max |
The following table describes the estimation of resources used for CTM:
Table 5-27 Estimation of resources used for CTM (In Solaris)
System resource | Parameter | Requirement | Example of option settings |
---|---|---|---|
Shared memory | shminfo_shmmax | PrfTraceBufferSize#1 ![]() | /etc/system |
Number of processes | max_nprocs | 7 + number-of-J2EE-servers#3 | /etc/system |
Number of threads | -- | 72 + (number-of-J2EE-server-threads#4 + 7) ![]() | -- |
Number of file descriptors | rlim_fd_max | 88 + (number-of-J2EE-server-file-descriptors#4 + 6) ![]() | /etc/system |