<?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 How to resolve Load issues while using Splunkjs stack for app running outside of Splunk? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/How-to-resolve-Load-issues-while-using-Splunkjs-stack-for-app/m-p/527599#M9437</link>
    <description>&lt;P&gt;We created an application (mostly Javascript, with a proxy server for communicating to Splunk) that, while running outside of Splunk,&amp;nbsp; accesses Splunk Enterprise data and displays Splunkjs visualizations (using the docs at &lt;SPAN&gt;&lt;A href="https://dev.splunk.com/enterprise/docs/developapps/visualizedata/usesplunkjsstack/" target="_blank" rel="noopener"&gt;https://dev.splunk.com/enterprise/docs/developapps/visualizedata/usesplunkjsstack/&lt;/A&gt;&amp;nbsp;)&lt;/SPAN&gt;. Unfortunately we seem to be running into load-related issues when several users simultaneously access it, as follows:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;1&lt;/SPAN&gt; &lt;SPAN&gt;- Incomplete chart displays ('waiting for data' &amp;nbsp;forever) in a couple of charts that happen to depend on the completion of saved searches for their own (post process) search to get started.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;2 &lt;/SPAN&gt;&lt;SPAN&gt;- Other times, t&lt;/SPAN&gt;&lt;SPAN&gt;his error appears in the Javascript console and none of the charts load:&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;Uncaught Error: Load timeout for modules: splunkjs/ready!_unnormalized2,splunkjs/ready!&lt;A href="http://requirejs.org/docs/errors.html#timeout" target="_blank" rel="noopener"&gt;http://requirejs.org/docs/errors.html#timeout&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at makeError (eval at module.exports (config.js:138), &amp;lt;anonymous&amp;gt;:166:17)&amp;nbsp;&amp;nbsp;&amp;nbsp; at checkLoaded (eval at module.exports (config.js:138), &amp;lt;anonymous&amp;gt;:692:23)&amp;nbsp;&amp;nbsp;&amp;nbsp; at eval (eval at module.exports (config.js:138), &amp;lt;anonymous&amp;gt;:713:25)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;NOTE: these issues don’t come up unless there are various simultaneous (10 or so is all that it requires) loads of the application, which is why we are theorizing that they are load-related issues. In addition, our Splunk admin was present when we tested this app, and he did not see the relevant limits being reached on the back end (e.g. number of simultaneous searches, space used by the single service user employed in this application) .&lt;/P&gt;
&lt;P&gt;Could somebody please advise on what could be happening? Are there limitations specific to the Splunkjs stack that we should be aware of?&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Apr 2022 15:47:30 GMT</pubDate>
    <dc:creator>pgoldweic</dc:creator>
    <dc:date>2022-04-19T15:47:30Z</dc:date>
    <item>
      <title>How to resolve Load issues while using Splunkjs stack for app running outside of Splunk?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-resolve-Load-issues-while-using-Splunkjs-stack-for-app/m-p/527599#M9437</link>
      <description>&lt;P&gt;We created an application (mostly Javascript, with a proxy server for communicating to Splunk) that, while running outside of Splunk,&amp;nbsp; accesses Splunk Enterprise data and displays Splunkjs visualizations (using the docs at &lt;SPAN&gt;&lt;A href="https://dev.splunk.com/enterprise/docs/developapps/visualizedata/usesplunkjsstack/" target="_blank" rel="noopener"&gt;https://dev.splunk.com/enterprise/docs/developapps/visualizedata/usesplunkjsstack/&lt;/A&gt;&amp;nbsp;)&lt;/SPAN&gt;. Unfortunately we seem to be running into load-related issues when several users simultaneously access it, as follows:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;1&lt;/SPAN&gt; &lt;SPAN&gt;- Incomplete chart displays ('waiting for data' &amp;nbsp;forever) in a couple of charts that happen to depend on the completion of saved searches for their own (post process) search to get started.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;2 &lt;/SPAN&gt;&lt;SPAN&gt;- Other times, t&lt;/SPAN&gt;&lt;SPAN&gt;his error appears in the Javascript console and none of the charts load:&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;Uncaught Error: Load timeout for modules: splunkjs/ready!_unnormalized2,splunkjs/ready!&lt;A href="http://requirejs.org/docs/errors.html#timeout" target="_blank" rel="noopener"&gt;http://requirejs.org/docs/errors.html#timeout&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at makeError (eval at module.exports (config.js:138), &amp;lt;anonymous&amp;gt;:166:17)&amp;nbsp;&amp;nbsp;&amp;nbsp; at checkLoaded (eval at module.exports (config.js:138), &amp;lt;anonymous&amp;gt;:692:23)&amp;nbsp;&amp;nbsp;&amp;nbsp; at eval (eval at module.exports (config.js:138), &amp;lt;anonymous&amp;gt;:713:25)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;NOTE: these issues don’t come up unless there are various simultaneous (10 or so is all that it requires) loads of the application, which is why we are theorizing that they are load-related issues. In addition, our Splunk admin was present when we tested this app, and he did not see the relevant limits being reached on the back end (e.g. number of simultaneous searches, space used by the single service user employed in this application) .&lt;/P&gt;
&lt;P&gt;Could somebody please advise on what could be happening? Are there limitations specific to the Splunkjs stack that we should be aware of?&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 15:47:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-resolve-Load-issues-while-using-Splunkjs-stack-for-app/m-p/527599#M9437</guid>
      <dc:creator>pgoldweic</dc:creator>
      <dc:date>2022-04-19T15:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Load issues while using Splunkjs stack for app running outside of Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-resolve-Load-issues-while-using-Splunkjs-stack-for-app/m-p/593978#M9438</link>
      <description>&lt;P&gt;same here... any update how to avoid this&amp;nbsp;&lt;SPAN&gt;splunkjs/ready!&lt;/SPAN&gt; load error?&lt;/P&gt;</description>
      <pubDate>Sun, 17 Apr 2022 12:32:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-resolve-Load-issues-while-using-Splunkjs-stack-for-app/m-p/593978#M9438</guid>
      <dc:creator>eliav2</dc:creator>
      <dc:date>2022-04-17T12:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Load issues while using Splunkjs stack for app running outside of Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-resolve-Load-issues-while-using-Splunkjs-stack-for-app/m-p/594296#M9439</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/243845"&gt;@eliav2&lt;/a&gt;&amp;nbsp;, yes, I should have updated this post a while ago but forgot to do so. Essentially, what I discovered was that the javascript 'require' call (which I mention above in the post) was timing out when several Splunk queries were being access simultaneously.&amp;nbsp; This in particular, is not a Splunk limitation, but a timing limitation in that function. I was able to temporarily do away with this timeout by changing the parameters being passed to 'require'. Specifically, I ended up with this call:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; // Configure the web site's base URL&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; require.config({&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; baseUrl: "static/",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; waitSeconds: 0&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/P&gt;&lt;P&gt;Note the 'waitSeconds' value above., which would normally not be included.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ultimately though, I ended up understanding the reality that Splunk's performance is the real culprit when writing this type of applications, and I did what I could to 'optimize' the queries that I was running simultaneously&amp;nbsp; on one web page (even sequencing some of them to avoid some of the concurrency).&amp;nbsp; This continues to be an issue for us and we haven't really found a good solution to the problem in general. If you find out some other way&amp;nbsp; please post it here.&amp;nbsp; Good luck with your optimization!&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 15:15:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-resolve-Load-issues-while-using-Splunkjs-stack-for-app/m-p/594296#M9439</guid>
      <dc:creator>pgoldweic</dc:creator>
      <dc:date>2022-04-19T15:15:34Z</dc:date>
    </item>
  </channel>
</rss>

