<?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: Why is Dashboard Performance So Bad? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-Dashboard-Performance-So-Bad/m-p/93602#M5102</link>
    <description>&lt;P&gt;I have the same question as Alex -- what happens when there are no FlashCharts?  If you replace them all with SimpleResultsTable modules do things seem to return to normal?&lt;/P&gt;

&lt;P&gt;The FlashCharts have a feature where they all sort of communicate with each other to try and share the same color space.  It's possible that this communication doesnt scale well when there are that many FlashCharts on the page.  &lt;/P&gt;

&lt;P&gt;You may have seen this phenomenon already on a small scale -- you might see FlashChart A  render, then FlashChart B will render, then A will sometimes adjust its colors to match B's.  This is just a weird hunch but I can see this not working out super well when there are actually 30 of them. &lt;/P&gt;</description>
    <pubDate>Mon, 02 May 2011 22:39:25 GMT</pubDate>
    <dc:creator>sideview</dc:creator>
    <dc:date>2011-05-02T22:39:25Z</dc:date>
    <item>
      <title>Why is Dashboard Performance So Bad?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-Dashboard-Performance-So-Bad/m-p/93600#M5100</link>
      <description>&lt;P&gt;I've got a few lengthy dashboard load times that I'm trying to improve. Short of professional services, I'd like to poll the Answers audience for performance improvement suggestions. Is a 30+ second load time just the way it has to be when using a lot of charts?&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;General Guidelines&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Things I have implemented / am implementing / am looking at so far:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://www.splunk.com/base/Documentation/latest/Knowledge/Configuresummaryindexes"&gt;Summary Indexing&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://www.splunk.com/base/Documentation/latest/Developer/FormSearchPostProcess"&gt;Using One Search for Multiple Charts&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://splunk-base.splunk.com/answers/3776/interpreting-execution-costs-on-the-job-inspector-page"&gt;Inspecting&lt;/A&gt; the actual searches to analyze performance via the &lt;A href="http://www.splunk.com/base/Documentation/latest/SearchReference/SearchJobInspector"&gt;Job Inspector&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://splunk-base.splunk.com/answers/862/can-i-make-my-dashboards-load-faster-by-scheduling-the-searches"&gt;Run Searches in Advance and Use Cached Results&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://www.splunk.com/wiki/Community:PerformanceTroubleshooting"&gt;Evaluate Server Performance with respect to Splunk&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://splunk-base.splunk.com/answers/9957/fieldpicker-is-killing-me"&gt;Configure your flashtimeline appropriately&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://splunk-base.splunk.com/answers/11844/schedule-pdf-disabled-for-timerangepicker/11855"&gt;Pull out any remaining cruft from SimpleXML to Advanced XML Conversion&lt;/A&gt; (Particularly EnablePreview, if not needed)&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;&lt;STRONG&gt;My Specific Test Case&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I have a particular view (just one example from many with this issue) that looks at a small amount of data, then displays 30+ FlashCharts with different views. It's process is:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Set up Chrome, Time Picker&lt;/LI&gt;
&lt;LI&gt;Run a generic search for &lt;CODE&gt;* | head 1&lt;/CODE&gt; to support custom binning and indexes. (&lt;A href="http://splunk-base.splunk.com/answers/22499/timechart-using-too-few-bins"&gt;why?&lt;/A&gt;)&lt;/LI&gt;
&lt;LI&gt;Execute Custom Javascript to support custom binning and indexes. &lt;/LI&gt;
&lt;LI&gt;Execute primary search, which takes 1 second to complete based on job inspector. &lt;/LI&gt;
&lt;LI&gt;Execute 36 PostProcesses to support flashcharts.&lt;/LI&gt;
&lt;LI&gt;Execute 36 additional PostProcesses to support textual data (sideview HTML modules are faster than SimpleResultsTable modules)&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;The behavior seen by the end user is as follows:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Time=0 - User Clicks Refresh on dashboard&lt;/LI&gt;
&lt;LI&gt;Time=4 - Display clears of old data, we see the Loading...&lt;/LI&gt;
&lt;LI&gt;Time=12 - All the textual data displays (Sideview HTML Modules)&lt;/LI&gt;
&lt;LI&gt;Time=12 - All Flash on every instance of my browsers stops functioning (including my flash-based stopwatch)&lt;/LI&gt;
&lt;LI&gt;Time=30 - All the flash charts fill in.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;That is in Chrome. In Firefox, the textual data (#3) fills in at Time=31, just after the flash charts.&lt;/P&gt;

&lt;P&gt;This search traverses about 5k of uncompressed source data (1.2k events). The server itself has two dual core Intels (so it's a couple of years old), which is generally bored and only spikes the CPU of one core for about 2 seconds during the search. The test box is brand new (nothing fancy or unusual installed) with a Core i5 2.53 GHz processor, discrete graphics and 4 GB of ram. &lt;/P&gt;

&lt;P&gt;Is there anything else I can do to make this better?&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2011 20:07:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-Dashboard-Performance-So-Bad/m-p/93600#M5100</guid>
      <dc:creator>David</dc:creator>
      <dc:date>2011-05-02T20:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Dashboard Performance So Bad?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-Dashboard-Performance-So-Bad/m-p/93601#M5101</link>
      <description>&lt;P&gt;Seems like FlashChart is the bottleneck, no?  What happens when there are no FlashCharts?&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2011 21:22:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-Dashboard-Performance-So-Bad/m-p/93601#M5101</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2011-05-02T21:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Dashboard Performance So Bad?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-Dashboard-Performance-So-Bad/m-p/93602#M5102</link>
      <description>&lt;P&gt;I have the same question as Alex -- what happens when there are no FlashCharts?  If you replace them all with SimpleResultsTable modules do things seem to return to normal?&lt;/P&gt;

&lt;P&gt;The FlashCharts have a feature where they all sort of communicate with each other to try and share the same color space.  It's possible that this communication doesnt scale well when there are that many FlashCharts on the page.  &lt;/P&gt;

&lt;P&gt;You may have seen this phenomenon already on a small scale -- you might see FlashChart A  render, then FlashChart B will render, then A will sometimes adjust its colors to match B's.  This is just a weird hunch but I can see this not working out super well when there are actually 30 of them. &lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2011 22:39:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-Dashboard-Performance-So-Bad/m-p/93602#M5102</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2011-05-02T22:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Dashboard Performance So Bad?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-Dashboard-Performance-So-Bad/m-p/93603#M5103</link>
      <description>&lt;P&gt;It does seem that FlashChart is the bottleneck. I replaced all the FlashCharts with SimpleResultsTables (to minimize the delta) and it loaded up in 7 seconds. That clocks in at about .68 seconds per flash chart. Does that number make sense, or should it be able to present the objects faster?&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2011 00:34:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-Dashboard-Performance-So-Bad/m-p/93603#M5103</guid>
      <dc:creator>David</dc:creator>
      <dc:date>2011-05-03T00:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Dashboard Performance So Bad?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-Dashboard-Performance-So-Bad/m-p/93604#M5104</link>
      <description>&lt;P&gt;So FlashCharts are indeed the pain point -- replacing them with SimpleResultsTables lowered the total time to 7 seconds. I tried to test out your theory by adding &lt;CODE&gt;&amp;lt;param name="charting.legend.masterLegend"&amp;gt;&amp;lt;/param&amp;gt;&lt;/CODE&gt; to every chart (all but two of which have their colors defined by &lt;CODE&gt;&amp;lt;param name="charting.fieldColors"&amp;gt;{"FieldA": 0x8A8621}&amp;lt;/param&amp;gt;&lt;/CODE&gt; anyway). I didn't get any improvement in time. Is it possible that it just takes .68 seconds per FlashChart to load?&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2011 00:54:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-Dashboard-Performance-So-Bad/m-p/93604#M5104</guid>
      <dc:creator>David</dc:creator>
      <dc:date>2011-05-03T00:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Dashboard Performance So Bad?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-Dashboard-Performance-So-Bad/m-p/93605#M5105</link>
      <description>&lt;P&gt;I have seen FlashChart suffer the most over low-bandwidth, high latency connections (2G EVDO or so), or when using FF on an underpowered machine also doing indexing and UI.  I haven't tried the kind of profiling such as you have undertaken, so it is interesting to see the results.  What kind of visualizations do you need 36 of, by the way?  Maybe there is a better solution.&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2011 04:13:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-Dashboard-Performance-So-Bad/m-p/93605#M5105</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2011-05-03T04:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Dashboard Performance So Bad?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-Dashboard-Performance-So-Bad/m-p/93606#M5106</link>
      <description>&lt;P&gt;If you have any interest going well above and beyond the call of duty, you could add some debug to FlashChart.js and FlashWrapper.js, to print out times and moduleIDs for - initialize, onSwfReady, connectBridge, onConnect, and perhaps onContextChange.  FlashChart has a very complicated load sequence.  While .68 seconds per chart doesnt sound surprising, it would be interesting to know which phase was taking all the time.&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2011 17:10:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-Dashboard-Performance-So-Bad/m-p/93606#M5106</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2011-05-03T17:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Dashboard Performance So Bad?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-Dashboard-Performance-So-Bad/m-p/93607#M5107</link>
      <description>&lt;P&gt;This is a dashboard for a particular product, showing the stats for a number of key customers. We also have a per-customer page where they can select the customer, but we're replacing another monitoring system that has this dashboard, and the business is very reliant on it. As far as performance, we're bridged by a 100 MBPS connections with 4 ms latency, so that definitely shouldn't be the issue. I'll try to replicate the slowness in a totally different scenario. If it seems like just FlashChart slowness though, is there anything that can be done to improve it?&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2011 17:43:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-Dashboard-Performance-So-Bad/m-p/93607#M5107</guid>
      <dc:creator>David</dc:creator>
      <dc:date>2011-05-03T17:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Dashboard Performance So Bad?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-Dashboard-Performance-So-Bad/m-p/93608#M5108</link>
      <description>&lt;P&gt;Sure. What's the best way to do that? Copy the .js files into modules (a la sideview) and use this.logger.error()? And then where would I get access to the log file?&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2011 18:56:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-Dashboard-Performance-So-Bad/m-p/93608#M5108</guid>
      <dc:creator>David</dc:creator>
      <dc:date>2011-05-03T18:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Dashboard Performance So Bad?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-Dashboard-Performance-So-Bad/m-p/93609#M5109</link>
      <description>&lt;P&gt;No, I would just change permissions on the files in place so you can edit them.  Then add this sort of thing:::::&lt;BR /&gt;
var now = new Date();&lt;BR /&gt;
console.log(this.moduleId + " onConnect at " + now.getSeconds() + "." + now.getMilliseconds())&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2011 19:08:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-Dashboard-Performance-So-Bad/m-p/93609#M5109</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2011-05-03T19:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Dashboard Performance So Bad?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-Dashboard-Performance-So-Bad/m-p/93610#M5110</link>
      <description>&lt;P&gt;And in firefox console.log will write out to the firebug console.  You can use Splunk's this.logger.debug() stuff too instead of the plain old console,  but you'd have to set js_logger_mode = Firebug in web.conf's [settings] stanza first.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:31:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-Dashboard-Performance-So-Bad/m-p/93610#M5110</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2020-09-28T09:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Dashboard Performance So Bad?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-Dashboard-Performance-So-Bad/m-p/93611#M5111</link>
      <description>&lt;P&gt;In the .js files, neither have a onSwfReady; FlashWrapper.js has no onContextChange and FlashChart has no connectBridge. &lt;/P&gt;

&lt;P&gt;I added the logging to the other functions, though, and here's the firebug output: &lt;A href="http://pastebin.com/qrpXWmHP"&gt;http://pastebin.com/qrpXWmHP&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2011 19:36:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-Dashboard-Performance-So-Bad/m-p/93611#M5111</guid>
      <dc:creator>David</dc:creator>
      <dc:date>2011-05-04T19:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Dashboard Performance So Bad?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-Dashboard-Performance-So-Bad/m-p/93612#M5112</link>
      <description>&lt;P&gt;I refreshed the page very close to t=0, so it looks like it's about 2.5 seconds till the first initialize, then that proceeds for 3 seconds. Afterward, the connectBridges go for 1.2 seconds, and then we wait for 8 seconds, at which part we get the onConnects and onContextChanges, which run for another 11 seconds. Then we get the results_preview calls and some other calls which take a few seconds to load, and then the page finishes.&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2011 19:37:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-Dashboard-Performance-So-Bad/m-p/93612#M5112</guid>
      <dc:creator>David</dc:creator>
      <dc:date>2011-05-04T19:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Dashboard Performance So Bad?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-Dashboard-Performance-So-Bad/m-p/93613#M5113</link>
      <description>&lt;P&gt;So in the interest of testing, I re-wrote the view in simple xml, sans sideview, custombehavior, lister module, etc. The results were approximately the same: &lt;A href="http://pastebin.com/krk7p008"&gt;http://pastebin.com/krk7p008&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2011 00:43:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-Dashboard-Performance-So-Bad/m-p/93613#M5113</guid>
      <dc:creator>David</dc:creator>
      <dc:date>2011-05-06T00:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Dashboard Performance So Bad?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-Dashboard-Performance-So-Bad/m-p/93614#M5114</link>
      <description>&lt;P&gt;To try and see if there was a root cause in anything I am doing, I totally rebuilt the view in simplexml with just a search and a bunch of &lt;CODE&gt;&amp;lt;chart&amp;gt;&amp;lt;searchPostProcess&amp;gt;&lt;/CODE&gt;s. Similar results.&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2011 00:44:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-Dashboard-Performance-So-Bad/m-p/93614#M5114</guid>
      <dc:creator>David</dc:creator>
      <dc:date>2011-05-06T00:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Why is Dashboard Performance So Bad?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-Dashboard-Performance-So-Bad/m-p/93615#M5115</link>
      <description>&lt;P&gt;Just syncing up for posterity. It's been 2.5 years. I just updated my app in Splunk 6 with the current version of SideView and switched all of the FlashCharts to the new JSCharts. After all of that (and on a new server), the entire page now loads in about six seconds. This is consistent with all the insights from Alex and Nick, years ago.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2013 20:31:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-is-Dashboard-Performance-So-Bad/m-p/93615#M5115</guid>
      <dc:creator>David</dc:creator>
      <dc:date>2013-12-06T20:31:38Z</dc:date>
    </item>
  </channel>
</rss>

