Handling Large Attachments
You can transfer large files by the following ways:
- •Increasing the field buffer size
- •Increasing Secure Agent memory
Note: You can upload or download files with maximum size of 75 MB using FileIO Connector.
Increasing the Field Buffer Size
In case you need to process or transfer a large file, you must increase the body field size in both source and target section of field mapping tab. Refer
field MappingFollow the steps given below to increase the field buffer size:
1. In Field mapping section of the Data Synchronization task, click Edit Types and select Body field in the Source section. Refer 11. 2. Edit Field Data Types dialog box appears
3. Select Base64from the list.
4. Mention the character Size in the field as shown in the figure.
5. Click Ok.
6. In the Target section, click Edit Types and select Body field next to File Content As Base64 String field as shown in figure given below.
7. The Edit Field Data Types dialog box appears.
8. Increase the character size in precision field of File Content as Base64 String.
9. Click Ok.
This will increase the file size. An error FATAL ERROR: Failed to allocate memory. Out of virtual memory is thrown, when you try to transfer the file which exceeds the maximum limit.
You can overcome the above error by increasing the secure agent memory.
Increasing Secure Agent Memory
To increase performance and avoid runtime environment memory issues, perform the following steps:
1. Click Configure > Runtime Environments.
2. On the Runtime Environments page, Select the Secure Agent for which you want to increase memory from the list of available Secure Agents.
3. In the upper right corner, click Edit.
4. In the System Configuration Details section, select the Type as DTM for the Data Integration Service.
5. Edit JVMOption1 as -Xms4056m and JVMOption2 as -Xmx4056m.
The following image shows the Agent Details page:
6. Select the Type as TomCatJRE in the System Configuration Details section.
7. Edit INFA_memory as -Xms256m -Xmx512m.
The following image shows the Agent Details page:
Note: The minimum and maximum values for java heap size are given as an example. Specify the size as per your requirements.