<?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>Question Re: Memory Allocation Error on XSJS (Successful through Web IDE in debugging) in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/memory-allocation-error-on-xsjs-successful-through-web-ide-in-debugging/qaa-p/653245#M167331</link>
    <description>&lt;P&gt;Hi Arun,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Thank you for prompt response. indexserver logs were the first thing I checked and I do see composite memory errors but I cannot figure out why does this work well on Hana Studio sql window and also Web IDE but not through XSJOB. Any pointers please ?&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;StatementHash=297bb771c6d90e22ffdf1e5b96adb922 [79902]{227300}[88/-1] 2018-06-25 16:27:33.690256 e Memory ReportMemoryProblems.cpp(01463) : Composite limit violation (OUT OF MEMORY) occurred. Composite limit=322122547200 Limit correction value (additionally considered as 'used'): 31140 Executable: hdbindexserver PID: 41834 Failed to allocate 264512059712 byte.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Thanks&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Hari&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jun 2018 19:22:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2018-06-25T19:22:40Z</dc:date>
    <item>
      <title>Memory Allocation Error on XSJS (Successful through Web IDE in debugging)</title>
      <link>https://community.sap.com/t5/technology-q-a/memory-allocation-error-on-xsjs-successful-through-web-ide-in-debugging/qaq-p/653243</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;I am executing my xsjs code through xsjob and it fails at very first sql execute step where I am reading Hana calculation view, with below error - &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Error Message Execution of script abcd.xsjs failed with error(s): InternalError: dberror($.hdb.Connection.executeQuery): 2048 - SQL error, server error code: 2048. column store error: search table error: [9] Memory allocation failed at /sapmnt/ld7272/a/HDB/jenkins_prod/workspace/8uyiojyvla/s/ptime/query/plan_executor/trex_wrapper/trex_wrapper_body/trex_executor.cc:153 (line 27 position 1 in ABCD.xsjs).&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;However, if I execute that very same sql in Hana Studio in sql window - I am able to retrieve data without any memory error. SQL is expected to retrieve only 10 records. I am also able to execute xsjs through Web IDE and I do not face any errors.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Can you please suggest how can I avoid this error when executed through xsjob ? We are currently on 1.00.122.16 version&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Thanks&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Hari&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jun 2018 18:01:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/memory-allocation-error-on-xsjs-successful-through-web-ide-in-debugging/qaq-p/653243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-06-25T18:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Allocation Error on XSJS (Successful through Web IDE in debugging)</title>
      <link>https://community.sap.com/t5/technology-q-a/memory-allocation-error-on-xsjs-successful-through-web-ide-in-debugging/qaa-p/653244#M167330</link>
      <description>&lt;P&gt;Hi Hari, &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;The error &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; - SQL error, server error code: 2048. column store error: search table error: [9] Memory allocation failed at &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;is a generic error when a job fails with memory related issues on HANA side. It needs to be checked why same query is successful in HANA directly. I would recommend you to check HANA indexserver log and other xsa traces to see if any memory related issues(ooms) were seen at the time of failure. &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Thanks,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Arun Marria&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jun 2018 18:59:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/memory-allocation-error-on-xsjs-successful-through-web-ide-in-debugging/qaa-p/653244#M167330</guid>
      <dc:creator>former_member240094</dc:creator>
      <dc:date>2018-06-25T18:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Allocation Error on XSJS (Successful through Web IDE in debugging)</title>
      <link>https://community.sap.com/t5/technology-q-a/memory-allocation-error-on-xsjs-successful-through-web-ide-in-debugging/qaa-p/653245#M167331</link>
      <description>&lt;P&gt;Hi Arun,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Thank you for prompt response. indexserver logs were the first thing I checked and I do see composite memory errors but I cannot figure out why does this work well on Hana Studio sql window and also Web IDE but not through XSJOB. Any pointers please ?&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;StatementHash=297bb771c6d90e22ffdf1e5b96adb922 [79902]{227300}[88/-1] 2018-06-25 16:27:33.690256 e Memory ReportMemoryProblems.cpp(01463) : Composite limit violation (OUT OF MEMORY) occurred. Composite limit=322122547200 Limit correction value (additionally considered as 'used'): 31140 Executable: hdbindexserver PID: 41834 Failed to allocate 264512059712 byte.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Thanks&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Hari&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jun 2018 19:22:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/memory-allocation-error-on-xsjs-successful-through-web-ide-in-debugging/qaa-p/653245#M167331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-06-25T19:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Memory Allocation Error on XSJS (Successful through Web IDE in debugging)</title>
      <link>https://community.sap.com/t5/technology-q-a/memory-allocation-error-on-xsjs-successful-through-web-ide-in-debugging/qaa-p/653246#M167332</link>
      <description>&lt;P&gt;Is underlying statement exact same in both cases? Can you confirm from hash or traces (if captured)?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jun 2018 22:54:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/memory-allocation-error-on-xsjs-successful-through-web-ide-in-debugging/qaa-p/653246#M167332</guid>
      <dc:creator>former_member240094</dc:creator>
      <dc:date>2018-06-25T22:54:37Z</dc:date>
    </item>
  </channel>
</rss>

