Cloud Replication
v7
v7
  • Introduction
  • Installation
    • Windows
    • Windows Zip
    • Linux
    • Increase Heap Memory
  • Key Features
    • Filter Criteria
    • Formula Field Update
    • Rename Table or Column
    • do_sync_fl
    • Salesforce Field Selection
    • Log Event Notification
    • Scheduler For Replication
    • Global prefix for Table & Column names
    • Outbound Message Setup
    • Alter Field Size in Database
    • Replication Web API
    • Cron- functionality
    • Datamasking
    • Force Property
    • Overriding Database's Datatypes
  • Security Architecture
  • Tomcat
    • Security for Tomcat Setup
  • Utilities
    • Command Line
      • testconnection
      • showlicense
      • downloadlicense
      • diffschema
      • Describe
      • verifypasswd
      • chpwd
    • Upgrade Utility
      • Run Upgrade Utility on Linux
  • Bigdata Support
    • Archive and Non-archive Mode
  • AWS Redshift
    • Amazon Redshift
    • Datapipeline
  • Azure Synapse
  • Azure Datalake Gen2
  • MINIO
  • File Replication
    • Enable and Run File Replication
  • salesforce replication
    • Introduction
    • Getting Started
    • Core Concepts
    • Running Salesforce Replication
      • Salesforce Setup
      • Database Setup
        • Azure Active Directory
      • Objects
      • Restore
      • Schedule Jobs
      • Notifications
        • Email
        • Webhooks
          • Webhooks Setup for Microsoft Teams
      • Logs
      • Metadata
      • Batch Mode
  • Dynamics 365 CRM Replication
    • Introduction
    • Getting Started
    • Running Replication
      • Dynamics 365 CRM Replication Setup
      • Configure Database
      • Configure Objects
      • Scheduling Jobs
  • Salesforce HealthCloud Replication
    • Introduction
    • Core Concepts
    • Getting Started
    • Running Salesforce Health Cloud Replication
      • Salesforce HealthCloud
      • Database
        • Azure Active Directory Setup Process
      • Objects
      • Restore
      • Schedule Jobs
      • Notifications
        • Email
        • Webhooks
      • Logs Screen
  • More information
    • Troubleshooting
      • Tomcat
      • Out of Memory Exception
      • Mismatch in Datasize
      • Unable to Create Sequence in Oracle DB
      • Single File Logging
      • Row Size greater than 64kb in MySQL
      • Secure your App using credentials
      • Update Salesforce/MS CRM Org ID
      • Incorrect Syntax Near Column Name
      • SSL Configuration in DBSync Tomcat
Powered by GitBook
On this page
  1. More information
  2. Troubleshooting

Out of Memory Exception

PreviousTomcatNextMismatch in Datasize

Last updated 1 year ago

If the Java Virtual Machine memory is insufficient to run the replication, tomcat will lead to the error as shown below.

INFO: Completed Request:db_setup Exception in thread "Thread-4" java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOfRange(Unknown Source)

Solution:

This issue can be resolved by following the below steps.

  • Go to installation folder DBSyncCReplSF3 and then open bin folder. Identify the tomcat file catalina.bat in bin folder.

  • Right click on the file catalina.bat to select edit. In catalina.bat file, search for the command set CATALINA_OPTS=

  • If set CATALINA_OPTS command is found, edit the values for Xms & Xmx to 1024. Usually this command will be available in the beginning, right after the command set JRE_HOME=..\jre1.7.0_13. The new command must be CATALINA_OPTS="-Xms1024m --Xmx1024m"

  • If set CATALINA_OPTS command is not found, include the new command to edit the default values for Xms & Xmx. The new command must be CATALINA_OPTS="-Xms1024m --Xmx1024m" and must be placed after the command set JRE_HOME=..\jre1.7.0_13

  • If Windows service is used to run DBSync Cloud Replication, windows service must be re-registered before running the Replication.