Javelin 'System.OutOfMemoryException' thrown

Document ID : KB000122930
Last Modified Date : 12/12/2018
Show Technical Document Details
While uploading one of the file which is approx. 1.1 GB. File cannot be attached due to size and it seems size issue only. Please suggest how to get that resolved. 
The Javelin log shows the following error when attempting to upload the 1.1 GB file: "Error executing FileActivity: Exception of type 'System.OutOfMemoryException' was thrown." 

Javelin is still a 32-bit application, therefore we are hitting the memory constraints set by the OS. The Windows Operating System will only allocate up to 2 GB of memory for a 32-bit process.

See https://blogs.msdn.microsoft.com/tom/2008/04/10/chat-question-memory-limits-for-32-bit-and-64-bit-processes/ for more information on Memory Limits for Windows.
This is a common issue when working with large files, or large Bulk Copy jobs in Javelin.

Your best option, is to break up the file (job), into smaller segments (batches), so we are not running out of memory during the FileActivity.

If you cannot break the file into smaller segments, then your next option would be to configure the Windows OS with the /3GB switch, which will allow the OS to allocate an additional GB of memory to the 32-bit process. However, there is still no guarantee that the 1.1 GB file upload will not hit the memory allocation limit set by the OS. You will need to research how to set the /3GB switch for your version of Windows OS, since the steps vary between versions.