Hitachi

uCosminexus Service Platform Setup and Operation Guide


I.2 Estimating the number of threads

Estimate the maximum number of threads that will be used in a system that uses the HCSC server by using the following formula:

Maximum number of threads = number of threads on the J2EE server + number of threads on the HCSC server

The following explains the elements in the preceding formula:

Number of threads on the J2EE server:

This value is obtained by using the following formula:

  • If CORBA Naming Service is started on an in-process basis and the in-process HTTP server is used

    70 + D + E + G + H + I + K + N + R

  • If CORBA Naming Service is started on an in-process basis and HTTP Server is used

    68 + D + E + G + H + I + J + K + R

For details about the variables in the preceding formulas, see (1) Number of threads in 5.2.1 Estimating the resources used by J2EE server in the Application Server System Design Guide.

Number of threads on the HCSC server:

This value is obtained by using the following formula:

12 + a + b + c + d + e + f

The following explains the variables in the preceding formula:

a: Number of MDB threads

To use the Message Queue reception, assign the result of the following calculation:

[Figure] (Value set for pooled-instance.maximum in the self-defined file for each reception)
b: Number of Session Bean threads

To use the standard reception (EJB), assign the result of the following calculation:

Number of clients × 2 + value set for the request-ejb.instance.maximum property in the HCSC server runtime definition file + 1
c: Number of web applications

In the following table, check the number of web applications for each reception to be used, and then assign the total value:

Reception

Number of web applications

Standard reception (SOAP 1.1 mode)

1

Standard reception (SOAP 1.1/1.2 mode)

2

User-defined reception (SOAP reception)

Number of receptions

User-defined reception (HTTP reception)

Number of receptions

d: Number of threads used for TP1 linkage

Assign the result of the following calculation only when the TP1 reception is to be used:

Number of TP1 inbound adapters:
(4 + number of threads set for the rpc_max_thread_count property for the TP1 inbound adapter
+ number of threads set for the trn_max_thread_count property for the TP1 inbound adapter
+ number of TP1 receptions
+ value set for the MaxTPoolSize property for the TP1 inbound adapter)
e: Number of threads used for asynchronous Session Bean invocations

In the following table, identify the calculation formulas for the HCSC server functions to be used and assign the total of the calculation results of the formulas:

HCSC server function

Calculation formula

Execution after a reply by the business process

If rm-use=OFF is set in the HCSC server setup definition file or execution after a reply is used for non-persistent business processes:

2 + value specified for the bp-reply-after-max-thread-pool-size property in the HCSC server runtime definition file

Standby activity

Value set for ejbserver.ejb.timerservice.maxCallbackThreads in the usrconf.properties file

Standard reception (WSR)

If request-jms=ON is set in the HCSC server setup definition file: Value set for MaxPoolSize in the Connector attribute file for Cosminexus_Reliable_Messaging

Standard reception (DBQ)

If request-dbq=ON is set in the HCSC server setup definition file: Value set for MaxPoolSize in the Connector attribute file for Cosminexus_Reliable_Messaging

f: Number of threads used individually by HCSC components

In the following table, identify the calculation formulas for the HCSC components to be used and assign the total of the calculation results of the formulas:

HCSC component

Calculation formula

FTP linkage

If the FTP inbound adapter is used:

3 + value set for MaxTPoolSize in the Connector attribute file x 2

File event reception

1 + number of receptions x 2 + [Figure] (Value set for urecp-fileevent.thread-pool.maximum in the self-defined file for each reception)

FTP reception

If 1 or a larger value is specified for the urecp-ftp.request-timeout property in the FTP reception configuration file:

Number of receptions + [Figure] (Value set for the urecp-ftp.timer-thread.maximum property in the FTP reception configuration file for each reception)

Object Access adapter

  • If vbroker.ce.iiop.ccm.htc.readerPerConnection=true is set in the TPBroker environment-definition file:

    Number of adapters x 5

  • If vbroker.ce.iiop.ccm.htc.readerPerConnection=true is not set in the TPBroker environment-definition file:

    Number of adapters x 4

Command adapter

[Figure] (Number of concurrent threads for each adapter x 3)

SFTP adapter

[Figure] (Number of concurrent threads for each adapter)