<?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 Flex Viewer - Slow to start in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-slow-to-start/m-p/126592#M2995</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Why does the flexviewer take so long to start up?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is especially apparent in the morning when just starting up the flex site.&amp;nbsp; It seems I need to delete cookies, then CTRL + F5 a few times before the site actually displays map data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone know the cause for this and how to fix it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Nov 2010 14:10:33 GMT</pubDate>
    <dc:creator>ChrisOwen</dc:creator>
    <dc:date>2010-11-16T14:10:33Z</dc:date>
    <item>
      <title>Flex Viewer - Slow to start</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-slow-to-start/m-p/126592#M2995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Why does the flexviewer take so long to start up?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is especially apparent in the morning when just starting up the flex site.&amp;nbsp; It seems I need to delete cookies, then CTRL + F5 a few times before the site actually displays map data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone know the cause for this and how to fix it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 14:10:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-slow-to-start/m-p/126592#M2995</guid>
      <dc:creator>ChrisOwen</dc:creator>
      <dc:date>2010-11-16T14:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: Flex Viewer - Slow to start</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-slow-to-start/m-p/126593#M2996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Chris,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It sounds like you have a case of the sleeping web services.&amp;nbsp; A common ailment that is curable.&amp;nbsp; If you are running AGS 9.3 then you will need to put the attached file on a computer and schedule a job to have it run every 20 minutes.&amp;nbsp; Any longer and the services will go nighty night.&amp;nbsp; You will need to rename the script from .txt to .vbs and then edit the name of the web servers and AGS web services.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are using AGS 10 then there are tools available for fixing broken connections.&amp;nbsp; This info is @ &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#//009300000069000000.htm"&gt;http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#//009300000069000000.htm&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Keith&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 22:02:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-slow-to-start/m-p/126593#M2996</guid>
      <dc:creator>KeithPalmer</dc:creator>
      <dc:date>2010-11-16T22:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Flex Viewer - Slow to start</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-slow-to-start/m-p/126594#M2997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Keith!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll put this into place and post the results.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Nov 2010 14:54:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-slow-to-start/m-p/126594#M2997</guid>
      <dc:creator>ChrisOwen</dc:creator>
      <dc:date>2010-11-17T14:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Flex Viewer - Slow to start</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-slow-to-start/m-p/126595#M2998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Keith,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried running it from the server, received errors.&amp;nbsp; I changed the AGS server and services - they look good.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1st attempt:&amp;nbsp; I ran it, then pressed OK each time the error message window displayed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2nd attempt:&amp;nbsp; I let it run without pressing OK - after 10 imuntes clicked OK and received error messages.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Nov 2010 15:47:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-slow-to-start/m-p/126595#M2998</guid>
      <dc:creator>ChrisOwen</dc:creator>
      <dc:date>2010-11-17T15:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Flex Viewer - Slow to start</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-slow-to-start/m-p/126596#M2999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Chris,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What error messages are you receiving?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Keith&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 14:22:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-slow-to-start/m-p/126596#M2999</guid>
      <dc:creator>KeithPalmer</dc:creator>
      <dc:date>2010-11-18T14:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Flex Viewer - Slow to start</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-slow-to-start/m-p/126597#M3000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Keith,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There are the errors built into the code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;The 1st window displays "Navigating to &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;..." - I click OK&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The 2nd window displays "Pausing for 10ms wjile IE is busy..." - I click OK&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The 3rd window displays "IE navigation failed!" - I click OK&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The 4th window displays "Error:&amp;nbsp; 9" - I click OK&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The 5th window displays "Subscript out of range" - I click OK&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; It keep going with error messages.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I assume this is supposed to run with no interaction from the user, although there are buttons which seem to execute the refresh.&amp;nbsp; I must be missing something here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 21:59:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-slow-to-start/m-p/126597#M3000</guid>
      <dc:creator>ChrisOwen</dc:creator>
      <dc:date>2010-11-18T21:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Flex Viewer - Slow to start</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-slow-to-start/m-p/126598#M3001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It appears to be working.&amp;nbsp; I created a schedule event on the server and let it run.&amp;nbsp; When I fired the flexviewer up, bang - data displayed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I was running the script manually, which is why the errors appeared.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nice work Keith!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Nov 2010 16:44:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-slow-to-start/m-p/126598#M3001</guid>
      <dc:creator>ChrisOwen</dc:creator>
      <dc:date>2010-11-19T16:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Flex Viewer - Slow to start</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-slow-to-start/m-p/126599#M3002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Chris,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wasn't clear enough explaining that you did need to create a scheduled event to run this.&amp;nbsp; The script has error logging that writes to the event logs, but if you run it interactively then you get the messages posted to the screen.&amp;nbsp; That said, it is good you ran it interactively since it appears to be having a problem.&amp;nbsp; Based on the errors you posted I think you need to change the array size on the "Dim servers" or "Dim services" line.&amp;nbsp; In vbscript, arrays are "0" based.&amp;nbsp; That means if you have a single item the array size would be "0" (like Dim servers(0)).&amp;nbsp; If you have two items the array size would be "1".&amp;nbsp; You are getting a subscript out of range error which is likely because the array is larger then the number of elements you have.&amp;nbsp; Check the servers and services arrays to be sure you the size is correct.&amp;nbsp; Also, once the script is working properly, you can take the LogIt lines out of the loop so they don't fill up your event log.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Keith&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Nov 2010 16:37:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-slow-to-start/m-p/126599#M3002</guid>
      <dc:creator>KeithPalmer</dc:creator>
      <dc:date>2010-11-20T16:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Flex Viewer - Slow to start</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-slow-to-start/m-p/126600#M3003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I updated the script and I ran it interactively without errors.&amp;nbsp; I updated the # of Dim servers to the correct #, and it is working perfectly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for following up, as the script was probably only re-starting the first two services since Dim servers was set to 1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Nov 2010 15:00:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-slow-to-start/m-p/126600#M3003</guid>
      <dc:creator>ChrisOwen</dc:creator>
      <dc:date>2010-11-22T15:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Flex Viewer - Slow to start</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-slow-to-start/m-p/126601#M3004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Keith - &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;All services start perfectly with exception of one service.&amp;nbsp; It was the very last service in the dim array; so I decided to place it in the second to last position - still does not refresh.&amp;nbsp; So far, the only solution is to refresh the service manually from ArcCatalog or from ArcGIS Server via the web browser.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;'declare a counter variable as integer, set it to zero
Dim counter
counter = 0

'declare array for server names
Dim servers(8)
servers(0)="gis"

'declare array to hold names of different services
Dim services(8)
services(0)="GISBaseMap_web_t/MapServer"
services(1)="GISBaseMap_Streets/MapServer"
services(2)="GISBaseMap_parcels/MapServer"
services(3)="GISBaseMap_stuts/MapServer"
services(4)="GISBaseMap_suts/MapServer"
services(5)="GISBaseMap_Transportation/MapServer"
services(6)="GISBaseMap_wuts/MapServer"
services(7)="GISBaseMap_JCDA/MapServer"
services(8)="GISBaseMap_wwciOrtho08_wwcOrtho06_t/MapServer"&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:11:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-slow-to-start/m-p/126601#M3004</guid>
      <dc:creator>ChrisOwen</dc:creator>
      <dc:date>2021-12-11T07:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Flex Viewer - Slow to start</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-slow-to-start/m-p/126602#M3005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have added the ArcGIS Server service to the nightly service refresh schedule.&amp;nbsp; This may have been the cause of why the last service would not start/refresh - not an issue with the script at all, rather more of a Windows service issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 14:46:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-viewer-slow-to-start/m-p/126602#M3005</guid>
      <dc:creator>ChrisOwen</dc:creator>
      <dc:date>2010-12-27T14:46:45Z</dc:date>
    </item>
  </channel>
</rss>

