5.2.4 Estimating the resources used by CTM

This subsection describes the estimation of resources used by CTM for each OS. You cannot use CTM in batch application execution environment.

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

(1) In Windows

This section describes the estimation of resources used by CTM in Windows.

(a) File size for shared memory

This section describes the formula for calculating file size for shared memory (Unit: Bytes) using CTM. You must secure more than one shared memory for CTM daemon. There are files for shared memory with fixed length and variable length in the CTM daemon unit. The formula for calculating the respective file size is as follows:

(b) Statistics information file size

The formula for calculating statistics information file size (Unit: Bytes) is as follows:

The formula for calculating volume of information output by one request and volume of statistics information output once for CTM node unit, queue node unit is as follows:

(c) Disk occupancy of %CTMSPOOL%

The formula for calculating disk occupancy of %CTMSPOOL% is as follows:

The above mentioned disk capacity is a rough indicator. As a result, create the %CTMSPOOL% with enough excess space.

(2) In AIX

You must consider the following values and set up the kernel parameters to use CTM when using AIX. If the settings are not done properly, the CTM process cannot be invoked or while running the CTM processes they might as well terminate abnormally due to insufficient resources. For the kernel parameter settings, see the manual of the OS being used.

(a) File size for shared memory

Set up the file size for shared memory by the environment variable EXTSHM. Set up in such a way so that the shared memory allocated is greater that the value calculated by formula for calculations. The formula for calculations is the same as that for Windows. Reference the formula for calculations for Windows.

(b) Statistics information file size

The formula for calculating statistics information file size is the same as the one for Windows. Reference the formula for calculations for Windows.

(c) Number of file descriptors

Based on the options during invocation, add the number of file descriptors that you can use in the process as per the following formula for calculations in the CTM daemon. When the value set up in OS is not within the maximum value of file descriptors required in a CTM daemon setup by formula for calculations, the process invocation terminates with an error. Based on the formula for calculations, change the nofiles of /etc/security/limits.conf file.

(d) Disk occupancy of $CTMSPOOL

The formula for calculating disk occupancy of $CTMSPOOL is as follows:

The above mentioned disk capacity is a rough indicator. As a result, create the $CTMSPOOL with enough excess space.

(3) In HP-UX

You must consider the following values and set up the kernel parameters to use CTM when using HP-UX. If the settings are not done properly, the CTM processes cannot be invoked or while running the processes they might as well terminate abnormally due to insufficient resources. For the kernel parameter settings, see the manual of the OS being used.

(a) File size for shared memory

Set up the file size for shared memory by shmmax of Kernel Configuration. Set up in such a way so that the shared memory allocated is greater that the value calculated by formula for calculations. The formula for calculations is the same as that for Windows. Reference the formula for calculations for Windows.

(b) Statistics information file size

The formula for calculating statistics information file size is the same as the one for Windows. Reference the formula for calculations for Windows.

(c) Number of file descriptors

Set up the number of file descriptors by maxfiles of Kernel Configuration. Change the maxfiles based on the formula for calculations. The formula for calculations is same as that of AIX. Reference the formula for calculations of AIX.

(d) Number of threads

In the CTM daemon, the threads are created for invoking the J2EE server, invoking J2EE applications and for requests from the EJB client. Change the maximum value of threads that can be used by max_thread_proc of Kernel Configuration based on the formula for calculations.

(e) Disk occupancy of $CTMSPOOL

The formula for calculating disk occupancy of $CTMSPOOL is same as AIX. Reference the formula for calculations of AIX.

(4) In Linux

You must consider the following values and set up the kernel parameters to use CTM when using Linux. If the settings are not done properly, the CTM processes cannot be invoked or while running the processes they might terminate abnormally due to insufficient resources. For the kernel parameter settings, see the manual of the OS being used.

(a) File size for shared memory

Set up the file size for shared memory by kernel.shmmax of /etc/sysctl.conf file. Set up in such a way so that the shared memory allocated is greater that the value calculated by formula for calculations. The formula for calculations is the same as that for Windows. Reference the formula for calculations for Windows.

(b) Statistics information file size

The formula for calculating statistics information file size is the same as the one for Windows. Reference the formula for calculations for Windows.

(c) Number of file descriptors

Set up the number of file descriptors by nofiles of /etc/security/limits.conf file. Change the nofiles based on the formula for calculations. The formula for calculations is the same as that for AIX. Reference the formula for calculations for AIX.

(d) Disk occupancy of $CTMSPOOL

The formula for calculating disk occupancy of $CTMSPOOL is the same as that for AIX. Reference the formula for calculations for AIX.

(5) In Solaris

You must consider the following values and set up the kernel parameters to use CTM when using Solaris. If the settings are not done properly, the CTM processes cannot be invoked or while running the processes they might as well terminate abnormally due to insufficient resources. For the kernel parameter settings, see the manual of the OS being used.

(a) File size for shared memory

Set up the file size for shared memory by shmsys:shminfo_shmmax of /etc/system file. Set up in such a way so that the shared memory allocated is greater that the value calculated by formula for calculations. The formula for calculations is the same as that for Windows. Reference the formula for calculations for Windows.

(b) Statistics information file size

The formula for calculating statistics information file size is the same as the one for Windows. Reference the formula for calculations for Windows.

(c) Number of file descriptors

Set up the number of file descriptors by rlim_fd_max of /etc/system file based on the formula for calculations. Change the rlim_fd_max based on the formula for calculations. The formula for calculations is same as that of AIX. Reference the formula for calculations of AIX.

(d) Disk occupancy of $CTMSPOOL

The formula for calculating disk occupancy of $CTMSPOOL is same as that of the AIX. Reference the formula for calculations of AIX.