<?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: Slow splunkweb startup caused by splunk_instrumentation in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Slow-splunkweb-startup-caused-by-splunk-instrumentation/m-p/337300#M5098</link>
    <description>&lt;P&gt;This bug was fixed in 6.6.3 (SPL-141718):&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.6.3/ReleaseNotes/6.6.3"&gt;http://docs.splunk.com/Documentation/Splunk/6.6.3/ReleaseNotes/6.6.3&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Aug 2017 23:36:26 GMT</pubDate>
    <dc:creator>michaell_splunk</dc:creator>
    <dc:date>2017-08-21T23:36:26Z</dc:date>
    <item>
      <title>Slow splunkweb startup caused by splunk_instrumentation</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Slow-splunkweb-startup-caused-by-splunk-instrumentation/m-p/337292#M5090</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;After an upgrade from 6.3 to 6.6.1 I am experiencing very slow startups (around 5 minutes) on all search heads, indexers, heavy forwarder, license master and deployment server, while 'Waiting for web server at &lt;A href="http://127.0.0.1:8000" target="_blank"&gt;http://127.0.0.1:8000&lt;/A&gt; to be available' . This also seems to be the case on a standalone dev instance.&lt;/P&gt;

&lt;P&gt;I have tracked the issue down to splunk_instrumentation. See the large gap of time in web_service.log without debug logging:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2017-06-06 13:27:04,519 INFO    [59369f954b7fb8451b27d0] root:267 - Proxied mode ip_address=127.0.0.1 port=8065 exposed_port=8000:
2017-06-06 13:31:19,367 INFO    [59369f954b7fb8451b27d0] custom:211 - Registering custom app endpoint: splunk_instrumentation/instrumentation_controller
2017-06-06 13:31:19,454 INFO    [59369f954b7fb8451b27d0] custom:211 - Registering custom app endpoint: Splunk_TA_nix/setup
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And with python debug logging on:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2017-06-06 13:40:04,899 INFO [5936a2a4407fa13c5cd7d0] root:267 - Proxied mode ip_address=127.0.0.1 port=8065 exposed_port=8000:
2017-06-06 13:40:05,001 DEBUG [5936a2a4407fa13c5cd7d0] custom:148 - LOAD: returning wrapper package: &amp;lt;virtual package: splunk.appserver.mrsparkle.custom_controllers.&amp;gt;
2017-06-06 13:40:05,002 DEBUG [5936a2a4407fa13c5cd7d0] custom:154 - LOAD: reading file: /opt/splunk/etc/apps/splunk_instrumentation/appserver/controllers/instrumentation_controller.py
2017-06-06 13:40:05,002 DEBUG [5936a2a4407fa13c5cd7d0] custom:148 - LOAD: returning wrapper package: &amp;lt;virtual package: splunk.appserver.mrsparkle.custom_controllers.splunk_instrumentation&amp;gt;
2017-06-06 13:40:05,004 DEBUG [5936a2a4407fa13c5cd7d0] custom:154 - LOAD: reading file: /opt/splunk/etc/apps/splunk_instrumentation/appserver/controllers/cherrypy.py
2017-06-06 13:40:05,004 DEBUG [5936a2a4407fa13c5cd7d0] custom:162 - [Errno 2] No such file or directory: '/opt/splunk/etc/apps/splunk_instrumentation/appserver/controllers/traceback.py'
2017-06-06 13:40:05,004 DEBUG [5936a2a4407fa13c5cd7d0] custom:154 - LOAD: reading file: /opt/splunk/etc/apps/splunk_instrumentation/appserver/controllers/traceback.py
2017-06-06 13:40:05,004 DEBUG [5936a2a4407fa13c5cd7d0] custom:162 - [Errno 2] No such file or directory: '/opt/splunk/etc/apps/splunk_instrumentation/appserver/controllers/json.py'
2017-06-06 13:40:05,004 DEBUG [5936a2a4407fa13c5cd7d0] custom:154 - LOAD: reading file: /opt/splunk/etc/apps/splunk_instrumentation/appserver/controllers/json.py
2017-06-06 13:40:05,004 DEBUG [5936a2a4407fa13c5cd7d0] custom:162 - [Errno 2] No such file or directory: '/opt/splunk/etc/apps/splunk_instrumentation/appserver/controllers/logging.py'
2017-06-06 13:40:05,004 DEBUG [5936a2a4407fa13c5cd7d0] custom:154 - LOAD: reading file: /opt/splunk/etc/apps/splunk_instrumentation/appserver/controllers/logging.py
2017-06-06 13:40:05,005 DEBUG [5936a2a4407fa13c5cd7d0] custom:162 - [Errno 2] No such file or directory: '/opt/splunk/etc/apps/splunk_instrumentation/appserver/controllers/zipfile.py'
2017-06-06 13:40:05,005 DEBUG [5936a2a4407fa13c5cd7d0] custom:154 - LOAD: reading file: /opt/splunk/etc/apps/splunk_instrumentation/appserver/controllers/zipfile.py
2017-06-06 13:40:05,005 DEBUG [5936a2a4407fa13c5cd7d0] custom:162 - [Errno 2] No such file or directory: '/opt/splunk/etc/apps/splunk_instrumentation/appserver/controllers/StringIO.py'
2017-06-06 13:40:05,005 DEBUG [5936a2a4407fa13c5cd7d0] custom:154 - LOAD: reading file: /opt/splunk/etc/apps/splunk_instrumentation/appserver/controllers/StringIO.py
2017-06-06 13:40:05,005 DEBUG [5936a2a4407fa13c5cd7d0] custom:162 - [Errno 2] No such file or directory: '/opt/splunk/etc/apps/splunk_instrumentation/appserver/controllers/splunk.py'
2017-06-06 13:40:05,005 DEBUG [5936a2a4407fa13c5cd7d0] custom:154 - LOAD: reading file: /opt/splunk/etc/apps/splunk_instrumentation/appserver/controllers/splunk.py
2017-06-06 13:40:05,005 DEBUG [5936a2a4407fa13c5cd7d0] custom:162 - [Errno 2] No such file or directory: '/opt/splunk/etc/apps/splunk_instrumentation/appserver/controllers/datetime.py'
2017-06-06 13:40:05,005 DEBUG [5936a2a4407fa13c5cd7d0] custom:154 - LOAD: reading file: /opt/splunk/etc/apps/splunk_instrumentation/appserver/controllers/datetime.py
2017-06-06 13:40:05,005 DEBUG [5936a2a4407fa13c5cd7d0] custom:162 - [Errno 2] No such file or directory: '/opt/splunk/etc/apps/splunk_instrumentation/appserver/controllers/cherrypy.py'
2017-06-06 13:40:05,007 DEBUG [5936a2a4407fa13c5cd7d0] custom:162 - [Errno 2] No such file or directory: '/opt/splunk/etc/apps/splunk_instrumentation/appserver/controllers/splunk_instrumentation.py'
2017-06-06 13:40:05,007 DEBUG [5936a2a4407fa13c5cd7d0] custom:154 - LOAD: reading file: /opt/splunk/etc/apps/splunk_instrumentation/appserver/controllers/splunk_instrumentation.py
2017-06-06 13:40:05,007 DEBUG [5936a2a4407fa13c5cd7d0] custom:162 - [Errno 2] No such file or directory: '/opt/splunk/etc/apps/splunk_instrumentation/appserver/controllers/string.py'
2017-06-06 13:40:05,007 DEBUG [5936a2a4407fa13c5cd7d0] custom:154 - LOAD: reading file: /opt/splunk/etc/apps/splunk_instrumentation/appserver/controllers/string.py
2017-06-06 13:44:19,655 INFO [5936a2a4407fa13c5cd7d0] custom:211 - Registering custom app endpoint: splunk_instrumentation/instrumentation_controller
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Moving the app folder to somewhere else and starting splunk results in an near instant startup:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2017-06-06 14:29:02,563 INFO    [5936ae1c147f2297de8790] root:267 - Proxied mode ip_address=127.0.0.1 port=8065 exposed_port=8000:
2017-06-06 14:29:02,904 DEBUG   [5936ae1c147f2297de8790] custom:162 - [Errno 2] No such file or directory: '/opt/splunk/etc/apps/Splunk_TA_nix/appserver/controllers/json.py'
2017-06-06 14:29:02,904 DEBUG   [5936ae1c147f2297de8790] custom:154 - LOAD: reading file: /opt/splunk/etc/apps/Splunk_TA_nix/appserver/controllers/json.py
2017-06-06 14:29:02,904 DEBUG   [5936ae1c147f2297de8790] custom:154 - LOAD: reading file: /opt/splunk/etc/apps/Splunk_TA_nix/appserver/controllers/setup.py
2017-06-06 14:29:02,904 DEBUG   [5936ae1c147f2297de8790] custom:148 - LOAD: returning wrapper package: &amp;lt;virtual package: splunk.appserver.mrsparkle.custom_controllers.Splunk_TA_nix&amp;gt;
2017-06-06 14:29:02,904 DEBUG   [5936ae1c147f2297de8790] custom:148 - LOAD: returning wrapper package: &amp;lt;virtual package: splunk.appserver.mrsparkle.custom_controllers.&amp;gt;
2017-06-06 14:29:02,905 DEBUG   [5936ae1c147f2297de8790] custom:162 - [Errno 2] No such file or directory: '/opt/splunk/etc/apps/Splunk_TA_nix/appserver/controllers/splunk.py'
2017-06-06 14:29:02,905 DEBUG   [5936ae1c147f2297de8790] custom:154 - LOAD: reading file: /opt/splunk/etc/apps/Splunk_TA_nix/appserver/controllers/splunk.py
2017-06-06 14:29:02,905 DEBUG   [5936ae1c147f2297de8790] custom:162 - [Errno 2] No such file or directory: '/opt/splunk/etc/apps/Splunk_TA_nix/appserver/controllers/cherrypy.py'
2017-06-06 14:29:02,905 DEBUG   [5936ae1c147f2297de8790] custom:154 - LOAD: reading file: /opt/splunk/etc/apps/Splunk_TA_nix/appserver/controllers/cherrypy.py
2017-06-06 14:29:02,905 DEBUG   [5936ae1c147f2297de8790] custom:162 - [Errno 2] No such file or directory: '/opt/splunk/etc/apps/Splunk_TA_nix/appserver/controllers/sys.py'
2017-06-06 14:29:02,905 DEBUG   [5936ae1c147f2297de8790] custom:154 - LOAD: reading file: /opt/splunk/etc/apps/Splunk_TA_nix/appserver/controllers/sys.py
2017-06-06 14:29:02,906 DEBUG   [5936ae1c147f2297de8790] root:452 - No shared storage location configured, using: /opt/splunk/var/run/splunk/rss
2017-06-06 14:29:02,906 DEBUG   [5936ae1c147f2297de8790] root:446 - Checking for shared storage location
2017-06-06 14:29:02,906 INFO    [5936ae1c147f2297de8790] custom:211 - Registering custom app endpoint: Splunk_TA_nix/setup
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have managed to workaround the issue for now by creating /opt/splunk/etc/apps/splunk_instrumentation/local/app.conf with the following parameters:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[install]
allows_disable = true
state = disabled
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hopefully this helps anyone else with slow startup issues, and perhaps someone can shed some light as to why this app, which is supposed to do background telemetry, is causing such an impact.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Carl&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:23:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Slow-splunkweb-startup-caused-by-splunk-instrumentation/m-p/337292#M5090</guid>
      <dc:creator>carlalldis</dc:creator>
      <dc:date>2020-09-29T14:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Slow splunkweb startup caused by splunk_instrumentation</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Slow-splunkweb-startup-caused-by-splunk-instrumentation/m-p/337293#M5091</link>
      <description>&lt;P&gt;Thanks Carl for this, I too have had problems with slow startup on Splunk when testing 6.6.1.  I have created a case for Splunk to investigate or provide comment.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 02:56:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Slow-splunkweb-startup-caused-by-splunk-instrumentation/m-p/337293#M5091</guid>
      <dc:creator>mshelley7</dc:creator>
      <dc:date>2017-06-14T02:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Slow splunkweb startup caused by splunk_instrumentation</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Slow-splunkweb-startup-caused-by-splunk-instrumentation/m-p/337294#M5092</link>
      <description>&lt;P&gt;Great, I thought I was going mad. I also have a support case ongoing with Splunk who cannot reproduce the issue as of yet. I am doing some diagnostic traces for them to review. Hopefully we will find the cause of the bug as it seems to be environment related.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 08:08:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Slow-splunkweb-startup-caused-by-splunk-instrumentation/m-p/337294#M5092</guid>
      <dc:creator>carlalldis</dc:creator>
      <dc:date>2017-06-14T08:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Slow splunkweb startup caused by splunk_instrumentation</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Slow-splunkweb-startup-caused-by-splunk-instrumentation/m-p/337295#M5093</link>
      <description>&lt;P&gt;Just off interest, what Operating System are you using? I am using Ubuntu 16.04.2 &lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 00:41:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Slow-splunkweb-startup-caused-by-splunk-instrumentation/m-p/337295#M5093</guid>
      <dc:creator>mshelley7</dc:creator>
      <dc:date>2017-06-15T00:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Slow splunkweb startup caused by splunk_instrumentation</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Slow-splunkweb-startup-caused-by-splunk-instrumentation/m-p/337296#M5094</link>
      <description>&lt;P&gt;Red Hat 7. I also get the issue on a personal Centos 7 instance. Both are fully up to date.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 07:56:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Slow-splunkweb-startup-caused-by-splunk-instrumentation/m-p/337296#M5094</guid>
      <dc:creator>carlalldis</dc:creator>
      <dc:date>2017-06-15T07:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Slow splunkweb startup caused by splunk_instrumentation</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Slow-splunkweb-startup-caused-by-splunk-instrumentation/m-p/337297#M5095</link>
      <description>&lt;P&gt;This is cause by &lt;CODE&gt;&lt;A href="https://quickdraw.splunk.com" target="test_blank"&gt;https://quickdraw.splunk.com&lt;/A&gt;&lt;/CODE&gt; being unreachable.  Another work around is to set environment variable &lt;CODE&gt;QUICKDRAW_URL&lt;/CODE&gt; to anything.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 02:18:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Slow-splunkweb-startup-caused-by-splunk-instrumentation/m-p/337297#M5095</guid>
      <dc:creator>thejohn</dc:creator>
      <dc:date>2017-06-30T02:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Slow splunkweb startup caused by splunk_instrumentation</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Slow-splunkweb-startup-caused-by-splunk-instrumentation/m-p/337298#M5096</link>
      <description>&lt;P&gt;Thanks, thejohn.&lt;/P&gt;

&lt;P&gt;I suggest you change your comment to an answer.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 08:23:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Slow-splunkweb-startup-caused-by-splunk-instrumentation/m-p/337298#M5096</guid>
      <dc:creator>echalex</dc:creator>
      <dc:date>2017-07-26T08:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Slow splunkweb startup caused by splunk_instrumentation</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Slow-splunkweb-startup-caused-by-splunk-instrumentation/m-p/337299#M5097</link>
      <description>&lt;P&gt;I was struggling with this too.&lt;BR /&gt;
Based on thejohn's comment above, it's clear that splunkweb is slow to start when it can't reach the update URL, e.g. when behind a corporate firewall and not using a proxy.&lt;/P&gt;

&lt;P&gt;The solution by thejohn works, but if you have a coroporate proxy, you can also get this working by setting the &lt;CODE&gt;https_proxy&lt;/CODE&gt; environment variable. This will allow splunk to perform the normal update checks. &lt;EM&gt;Apparently you can't disable this in web.conf...&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;I reduced my startup time from 5 minutes (sic) to 5 seconds by putting this in my splunk user's .bash_profile:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;export https_proxy=https://proxy.corporation.com:8080
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;On a server which doesn't have access to the proxy, I just put the following in my &lt;CODE&gt;splunk-launch.conf&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;QUICKDRAW_URL=0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Jul 2017 08:55:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Slow-splunkweb-startup-caused-by-splunk-instrumentation/m-p/337299#M5097</guid>
      <dc:creator>echalex</dc:creator>
      <dc:date>2017-07-26T08:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: Slow splunkweb startup caused by splunk_instrumentation</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Slow-splunkweb-startup-caused-by-splunk-instrumentation/m-p/337300#M5098</link>
      <description>&lt;P&gt;This bug was fixed in 6.6.3 (SPL-141718):&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.6.3/ReleaseNotes/6.6.3"&gt;http://docs.splunk.com/Documentation/Splunk/6.6.3/ReleaseNotes/6.6.3&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 23:36:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Slow-splunkweb-startup-caused-by-splunk-instrumentation/m-p/337300#M5098</guid>
      <dc:creator>michaell_splunk</dc:creator>
      <dc:date>2017-08-21T23:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Slow splunkweb startup caused by splunk_instrumentation</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Slow-splunkweb-startup-caused-by-splunk-instrumentation/m-p/337301#M5099</link>
      <description>&lt;P&gt;I have just upgrade my cluster and I can confirm that it has been fixed.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 01:14:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Slow-splunkweb-startup-caused-by-splunk-instrumentation/m-p/337301#M5099</guid>
      <dc:creator>mshelley7</dc:creator>
      <dc:date>2017-08-22T01:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Slow splunkweb startup caused by splunk_instrumentation</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Slow-splunkweb-startup-caused-by-splunk-instrumentation/m-p/337302#M5100</link>
      <description>&lt;P&gt;I have upgraded my cluster and can confirm that this is fixed in 6.6.3&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 01:17:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Slow-splunkweb-startup-caused-by-splunk-instrumentation/m-p/337302#M5100</guid>
      <dc:creator>mshelley7</dc:creator>
      <dc:date>2017-08-22T01:17:04Z</dc:date>
    </item>
  </channel>
</rss>

