<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Data Gateway &amp;quot;System.OutofMemoryException&amp;quot; - Direct Access 4020 in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-Gateway-quot-System-OutofMemoryException-quot-Direct-Access/m-p/2494578#M14351</link>
    <description>&lt;P&gt;Hi&lt;BR /&gt;&lt;BR /&gt;Thanks for the suggestion. We will try these settings and check again.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;However, we had already tried with&amp;nbsp;&lt;SPAN&gt;RELOAD_CACHE_MEMORY_MB to 500 and&amp;nbsp;ODBC_MAX_PROCESS_COUNT to 30.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;and it didn't work. &lt;BR /&gt;&lt;BR /&gt;Infact for some reason, the increased cache memory seem to slow things down a lot, however, the connection was not breaking with the out of memory error. &lt;BR /&gt;&lt;BR /&gt;Is there any significance to using 200MB here?&lt;BR /&gt;&lt;BR /&gt;For time being, we have reset the connection using native SQL connector and using public IP of the server and it is working fine. (I also have another issue here of making this connection point to AG listener so that it hits readable secondary. ApplicationIntent=ReadOnly doesn't seem to work. So for now we are directly pointing to readable secondary)&lt;BR /&gt;&lt;BR /&gt;Will try the revised setting and post the results on this thread.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Manguirish&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Nov 2024 08:12:30 GMT</pubDate>
    <dc:creator>Manguirish</dc:creator>
    <dc:date>2024-11-26T08:12:30Z</dc:date>
    <item>
      <title>Data Gateway "System.OutofMemoryException" - Direct Access 4020</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-Gateway-quot-System-OutofMemoryException-quot-Direct-Access/m-p/2493037#M14331</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;We have qlik data connections that query the SQL server using the MS SQL connector (via public IP of SQL server). Data loads/automations etc are running fine and have never caused any issues. This is on Qlik Enterprise SaaS.&lt;/P&gt;
&lt;P&gt;For security reasons we have now installed&amp;nbsp; the direct access gateway (v1.6.9) and data connection are made using ODBC via direct access gateway connector (I also tried using MS SQL vial direct access gateway connector). Upon using these gateway connectors our reloads and automation for some of our apps (which are reloading large fact tables - 8 mil rows, 80 columns) fail with Out of Memory exceptions as shown in screenshot below&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/174417iB5E23A17B8EBC192/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The data gateway server has 8 core cpu, 32 GB ram and 60GB Hard disk. We are observing minimal resource pressure (less than 30%) on this server and hence conclude that there is no lac of resources on the gateway.&lt;/P&gt;
&lt;P&gt;I have tried all the optimisations listed in the below article.&amp;nbsp;&lt;BR /&gt;&lt;SPAN data-teams="true"&gt;&lt;A id="menur1co" class="fui-Link ___1q1shib f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1s184ao f1mk8lai fnbmjn9 f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn" title="https://help.qlik.com/en-us/cloud-services/subsystems/hub/content/sense_hub/gateways/direct-access-gateway-troubleshooting.htm" href="https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Gateways/direct-access-gateway-troubleshooting.htm" target="_blank" rel="noreferrer noopener" aria-label="Link https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Gateways/direct-access-gateway-troubleshooting.htm"&gt;https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Gateways/direct-access-gateway-troubleshooting.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;I tried increasing the RELOAD_CACHE_MEMORY_MB,&lt;BR /&gt;tried setting the&amp;nbsp;&lt;SPAN data-teams="true"&gt;&lt;STRONG&gt;PROCESS_ISOLATION_MODE&lt;/STRONG&gt; to &lt;STRONG&gt;Load &lt;/STRONG&gt;and&lt;STRONG&gt;&amp;nbsp;ODBC_MAX_PROCESS_COUNT to 10 (parallelism). &lt;/STRONG&gt;ChangingODBC_MAX_PROCESS_COUNT to 30 seem to work sometimes but fails 4 out of 5 times.&lt;STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Increasing the&amp;nbsp;RELOAD_CACHE_MEMORY_MB to 100 does seem to resolve the issue but the speed of load is extremely slow and unacceptable. (usually the load finishes in 30 mins but at this speed it will take more than 2 hours plus)&lt;STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;Is this a know issue with using the direct access gateway?&lt;BR /&gt;Please help&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Nov 2024 07:44:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-Gateway-quot-System-OutofMemoryException-quot-Direct-Access/m-p/2493037#M14331</guid>
      <dc:creator>Manguirish</dc:creator>
      <dc:date>2024-11-17T07:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Data Gateway "System.OutofMemoryException" - Direct Access 4020</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-Gateway-quot-System-OutofMemoryException-quot-Direct-Access/m-p/2493817#M14342</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have few follow-up questions here.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- how is the Disk space looking during this reload failure ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- can you confirm if this server ist just dedicated to Direct Access gateway only ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- can you try increasing the&amp;nbsp;&lt;SPAN&gt;RELOAD_CACHE_MEMORY_MB to 200&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- setting&amp;nbsp;ODBC_MAX_PROCESS_COUNT between 30-60 count should be good enough.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Close monitoring of memory/resource consumption is needed with enabling the data chunk recovery feature. The text is also added here as suggestion&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Gateways/direct-access-gateway-troubleshooting.htm" target="_blank"&gt;https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Gateways/direct-access-gateway-troubleshooting.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;In case none of the above suggestions or pointers work and you have more questiosn, we will need to closely look at the logs from your machine and review the Windows events logs too. For that please open case with support and attach the needed logs.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Renu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 07:18:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-Gateway-quot-System-OutofMemoryException-quot-Direct-Access/m-p/2493817#M14342</guid>
      <dc:creator>RenuLalwani</dc:creator>
      <dc:date>2024-11-21T07:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Data Gateway "System.OutofMemoryException" - Direct Access 4020</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-Gateway-quot-System-OutofMemoryException-quot-Direct-Access/m-p/2494578#M14351</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;&lt;BR /&gt;Thanks for the suggestion. We will try these settings and check again.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;However, we had already tried with&amp;nbsp;&lt;SPAN&gt;RELOAD_CACHE_MEMORY_MB to 500 and&amp;nbsp;ODBC_MAX_PROCESS_COUNT to 30.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;and it didn't work. &lt;BR /&gt;&lt;BR /&gt;Infact for some reason, the increased cache memory seem to slow things down a lot, however, the connection was not breaking with the out of memory error. &lt;BR /&gt;&lt;BR /&gt;Is there any significance to using 200MB here?&lt;BR /&gt;&lt;BR /&gt;For time being, we have reset the connection using native SQL connector and using public IP of the server and it is working fine. (I also have another issue here of making this connection point to AG listener so that it hits readable secondary. ApplicationIntent=ReadOnly doesn't seem to work. So for now we are directly pointing to readable secondary)&lt;BR /&gt;&lt;BR /&gt;Will try the revised setting and post the results on this thread.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Manguirish&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 08:12:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Data-Gateway-quot-System-OutofMemoryException-quot-Direct-Access/m-p/2494578#M14351</guid>
      <dc:creator>Manguirish</dc:creator>
      <dc:date>2024-11-26T08:12:30Z</dc:date>
    </item>
  </channel>
</rss>

