uCosminexus Stream Data Platform - Application Framework Setup and Operation Guide
This subsection explains how to estimate the memory requirements for the standard adaptors.
To specify the memory requirements for the standard adaptors, you use parameters in the JavaVM options file for SDP servers (jvm_options.cfg), one of the SDP server definition files, or the JavaVM options file for RMI connections (jvm_client_options.cfg), as shown in the table below.
Table 2-9 Parameters used to specify the memory requirements for the standard adaptors (JavaVM options file for SDP servers (jvm_options.cfg))
| No. | Parameter | Description |
|---|---|---|
| 1 | SDP_INITIAL_MEM_SIZE | Specifies the initial size for the Java heap. The default value is 512 megabytes. |
| 2 | SDP_MAX_MEM_SIZE | Specifies the maximum size of the Java heap. The default value is 1,024 megabytes. |
Table 2-10 Parameters used to specify the memory requirement for the standard adaptors (JavaVM options file for RMI connections (jvm_client_options.cfg))
| No. | Parameter | Description |
|---|---|---|
| 1 | SDP_INITIAL_MEM_SIZE | Specifies the initial size for the Java heap. The default value is 256 megabytes. |
| 2 | SDP_MAX_MEM_SIZE | Specifies the maximum size of the Java heap. The default value is 512 megabytes. |
If the default memory size is not sufficient, change the parameter values as appropriate. To run the standard adaptors, you need the amount of memory estimated for the stream data processing engine in 2.7.1 Estimating the memory requirements for the stream data processing engine plus a fixed amount of memory for the standard adaptors, as described below. To reduce the frequency of garbage collection, specify a sufficient value for each parameter based on the values obtained below.
For details about the parameters in each file, see 8.4 JavaVM options file for SDP servers (jvm_options.cfg) or 8.5 JavaVM options file for RMI connections (jvm_client_options.cfg).
The following subsections explain each of the standard adaptor memory requirement items.
The memory required for running adaptors is 5 megabytes (fixed).
The memory required for one adaptor configured as an in-process group is 10 megabytes (fixed).
The memory required for one adaptor configured as an RMI group is 20 megabytes (fixed).
When a file input connector is used, you can use the following formula to determine the size of the memory required for record processing:
| Memory required for record processing (bytes) = (memory required for processing one record x number of records processed at one time) + (A x number of records processed at one time) |
| Memory required for processing one record (bytes) = (500 x number of field definitions in the format conversion definition#) + (maximum length of common record) |
| Number of records processed at one time (bytes) = number of records read by a file input connector at one time# |
For details about the definitions in the adaptor configuration definition file, see 9.5 Adaptor configuration definition file (AdaptorCompositionDefinition.xml).
If you use an HTTP packet input connector, you can use the following formula to determine the size of memory required for record processing:
| Memory required for record processing (bytes) = (memory required for processing one record x number of records processed at one time) + (A x number of records processed at one time) |
| Memory required for processing one record (bytes) = (500 x number of field definitions in the HTTP packet input connector definition#) + (maximum length of common record) |
| Number of records processed at one time (bytes) = number of records that are read by the HTTP packet input connector at one time# |
For details about the definitions in the adaptor configuration definition file, see 9.5 Adaptor configuration definition file (AdaptorCompositionDefinition.xml).
If you use a file output connector or a dashboard output connector, you can use the following formula to determine the amount of memory required for record processing:
| Memory required for record processing (bytes) = (memory required for processing one record x number of records processed at one time) + (A x number of records processed at one time) |
| Memory required for processing one record (bytes) = (500 x number of mapping information definitions in the mapping definition#) + (maximum length of common record) |
If you use record extraction or a dashboard output connector, you can use the following formula to determine the memory required for record accumulation:
| Memory required for record accumulation (bytes) = (memory required for processing one record x number of records to be accumulated) |
All Rights Reserved. Copyright (C) 2011, Hitachi, Ltd.