53 views

Symptoms


MID Server run into OutOfMemory error when importing data from JDBC Datasource

Release


All releases.

 

Cause


Depending on the query configure (or if all rows is selected), MID Server might have queried too many records which caused it to run out of memory when data is returned. 

Resolution


MID Server can stream the records in batches to prevent it from running out of memory. This option requires 'Integration - JDBC' plugin (com.snc.integration.jdbc) activated. Follow the below steps to resolve the issue:

  1. Create a plugin activation request on HI for 'Integration - JDBC' plugin (com.snc.integration.jdbc) 
    https://docs.servicenow.com/bundle/istanbul-platform-administration/page/administer/plugins/task/t_RequestAPlugin.html 

    2. Once Plugin is activated, goto System Import Sets > Administration > Data Sources 

    3. Personalize the list layout and show the column 'Jdbcprobe result set rows'. 

    4. Locate the JDBC Data Source that you're working on and configure the size of the result set (ex: 200) you want the integration to fetch per batch based on the following KB article: 
    https://hi.service-now.com/kb_view.do?sysparm_article=KB0635950 

    5. Restart MID Server.

 

Article Information

Last Updated:2018-08-31 15:53:51
Published:2018-08-31