<?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: Unable to load image layer via localhost in Angular in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-load-image-layer-via-localhost-in/m-p/1107911#M74975</link>
    <description>&lt;P&gt;HI&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/152457"&gt;@arahman_mdmajid&lt;/a&gt; my recommendation is build a simple, vanilla JS app that reproduces the issue and then call tech support. If nothing changed in the web app, then this most likely is not a problem caused by the ArcGIS JS API.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Oct 2021 14:21:24 GMT</pubDate>
    <dc:creator>AndyGup</dc:creator>
    <dc:date>2021-10-15T14:21:24Z</dc:date>
    <item>
      <title>Unable to load image layer via localhost in Angular</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-load-image-layer-via-localhost-in/m-p/1107819#M74972</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to add three layer with different capability in a map viewer. All layers were loading just fine. The other day serving the code again two layer are unable to load and getting image load error and internal server error.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;let layer1 = new MapImageLayer({
  //Public
  url: "https://&amp;lt;domain-url&amp;gt;:6443/arcgis/rest/services/Governorates/&amp;lt;layer1&amp;gt;/MapServer"
});
map.add(layer1);
let layer2 = new FeatureLayer({
  //Public
  url: "https://&amp;lt;domain-url&amp;gt;:6443/arcgis/rest/services/Governorates/&amp;lt;layer2&amp;gt;/FeatureServer/0"
});
map.add(layer2);
urlUtils.addProxyRule({
  urlPrefix: "https://&amp;lt;domain-url&amp;gt;:6443/arcgis/rest/services/Public/&amp;lt;layer3&amp;gt;/MapServer",
  proxyUrl: "https://&amp;lt;app-hosting-url&amp;gt;/Proxy/proxy.ashx"
});
const layer3 = new FeatureLayer({
  //Private
  url: "https://&amp;lt;domain-url&amp;gt;:6443/arcgis/rest/services/Public/&amp;lt;layer3&amp;gt;/MapServer"
});
map.add(layer3);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Layer 1 and layer 3 are giving the following error&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;FONT color="#FF0000"&gt;[esri.views.2d.layers.MapImageLayerView2D]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;{name: 'mapimagelayer:image-fetch-error', details: {…}, message: 'Unable to load image: https://&amp;lt;domain-url&amp;gt;:6…st/services/Governorates/&amp;lt;layer1&amp;gt;/MapServer/export'}&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;While layer 2 is loading just fine. I restarted ArcGIS Server also an the problem went away momentarily but its happening again.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2021 08:06:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-load-image-layer-via-localhost-in/m-p/1107819#M74972</guid>
      <dc:creator>arahman_mdmajid</dc:creator>
      <dc:date>2021-10-15T08:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to load image layer via localhost in Angular</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-load-image-layer-via-localhost-in/m-p/1107911#M74975</link>
      <description>&lt;P&gt;HI&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/152457"&gt;@arahman_mdmajid&lt;/a&gt; my recommendation is build a simple, vanilla JS app that reproduces the issue and then call tech support. If nothing changed in the web app, then this most likely is not a problem caused by the ArcGIS JS API.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2021 14:21:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-load-image-layer-via-localhost-in/m-p/1107911#M74975</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2021-10-15T14:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to load image layer via localhost in Angular</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-load-image-layer-via-localhost-in/m-p/1109613#M75048</link>
      <description>&lt;P&gt;So this happens every morning where when I serve the Angular app, the layers initially do not appear. And I see the error.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;[esri.views.2d.layers.MapImageLayerView2D] o {name: 'mapimagelayer:image-fetch-error', details: {…}, message: 'Unable to load image: &amp;lt;service-url&amp;gt;/MapServer/export'}&lt;/LI-CODE&gt;&lt;P&gt;After restarting the "ArcGIS Server" service in the Windows server and waiting some time, the layer appears and functions normally.&lt;/P&gt;&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/180"&gt;@AndyGup&lt;/a&gt;&amp;nbsp;suggested, I created a simple JS app with the same layers. Still, I am getting the same errors.&lt;/P&gt;&lt;P&gt;I also tried the service URL individually, I the service shows as follows.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="arcgis server rest service error.PNG" style="width: 935px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/25704iD149E63F87AA48E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="arcgis server rest service error.PNG" alt="arcgis server rest service error.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Below I have provided some log and service configuration screens shot to give some insight.&lt;/P&gt;&lt;P&gt;Yesterday after restarting the "ArcGIS Server" service:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="server log 1 - 21 Oct 2021.png" style="width: 994px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/25726iD00F125C896CD4B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="server log 1 - 21 Oct 2021.png" alt="server log 1 - 21 Oct 2021.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Midnight time log of server:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="server log 2 - 21 Oct 2021.png" style="width: 950px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/25727iC08CDE6EB318A743/image-size/large?v=v2&amp;amp;px=999" role="button" title="server log 2 - 21 Oct 2021.png" alt="server log 2 - 21 Oct 2021.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Today when the app requested the service:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="server log 3 - 21 Oct 2021.png" style="width: 963px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/25728iACF075358B1F259D/image-size/large?v=v2&amp;amp;px=999" role="button" title="server log 3 - 21 Oct 2021.png" alt="server log 3 - 21 Oct 2021.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Today after restarting the&amp;nbsp;"ArcGIS Server" service&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="server log 4 - 21 Oct 2021.png" style="width: 964px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/25729i797465075064D276/image-size/large?v=v2&amp;amp;px=999" role="button" title="server log 4 - 21 Oct 2021.png" alt="server log 4 - 21 Oct 2021.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Service parameters are as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="arcgis server service parameters.PNG" style="width: 710px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/25730iC8038FA674DB9E86/image-size/large?v=v2&amp;amp;px=999" role="button" title="arcgis server service parameters.PNG" alt="arcgis server service parameters.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;How can I resolve this?&amp;nbsp;&lt;/SPAN&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/567"&gt;@George_Thompson&lt;/a&gt;&lt;SPAN&gt;&amp;nbsp; and&amp;nbsp;&lt;/SPAN&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2620"&gt;@TanuHoque&lt;/a&gt;&lt;SPAN&gt;&amp;nbsp;can you also look into this issue.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 10:28:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-load-image-layer-via-localhost-in/m-p/1109613#M75048</guid>
      <dc:creator>arahman_mdmajid</dc:creator>
      <dc:date>2021-10-21T10:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to load image layer via localhost in Angular</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-load-image-layer-via-localhost-in/m-p/1109617#M75049</link>
      <description>&lt;P&gt;I would contact technical support to look into this. It looks like there is an issue with the service.&lt;/P&gt;&lt;P&gt;Can you pull up the service info via the REST end point in the built in JS viewer?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 10:51:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-load-image-layer-via-localhost-in/m-p/1109617#M75049</guid>
      <dc:creator>George_Thompson</dc:creator>
      <dc:date>2021-10-21T10:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to load image layer via localhost in Angular</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-load-image-layer-via-localhost-in/m-p/1109628#M75050</link>
      <description>&lt;P&gt;I am currently able to view all the layers from the built-in JS viewer. All are working normally now but every morning I have to restart ArcGIS Server to achieve this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="server pic 1.png" style="width: 975px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/25734iC1A6292A8C0ADFAF/image-size/large?v=v2&amp;amp;px=999" role="button" title="server pic 1.png" alt="server pic 1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="server pic 2.png" style="width: 741px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/25735i6EA5DB7A445EB206/image-size/large?v=v2&amp;amp;px=999" role="button" title="server pic 2.png" alt="server pic 2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="server pic 3.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/25736iE5CC9E24C441F19E/image-size/large?v=v2&amp;amp;px=999" role="button" title="server pic 3.png" alt="server pic 3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 11:08:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-load-image-layer-via-localhost-in/m-p/1109628#M75050</guid>
      <dc:creator>arahman_mdmajid</dc:creator>
      <dc:date>2021-10-21T11:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to load image layer via localhost in Angular</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-load-image-layer-via-localhost-in/m-p/1120694#M75414</link>
      <description>&lt;P&gt;After a lengthy discussion and diligent investigation by the ESRI Saudi Arabia team and another system analyst from ESRI, we were able to solve the problem.&lt;/P&gt;&lt;P&gt;The main issue was that too many unnecessary services were running, and the default minimum instance setting inside pooling was set to 1. So the server was reaching its maximum capacity and was crashing during midnight and was unable to instantiate the services. At max, were running around 180 ArcSOC services, so you can imagine the load on the CPU. I used the following command in Windows's Command Prompt to find the number of processes running.&lt;/P&gt;&lt;PRE&gt;tasklist | find /I /C "ArcSOC.exe"&lt;/PRE&gt;&lt;P&gt;Two main articles helped us in understanding the problem in detail. I have linked them below,&lt;/P&gt;&lt;P&gt;&lt;A title="Introducing shared instances in ArcGIS Server" href="https://www.esri.com/arcgis-blog/products/arcgis-enterprise/administration/shared-instances-arcgis-server-107/" target="_blank" rel="noopener"&gt;Introducing shared instances in ArcGIS Server&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A title="Anticipating and accommodating users" href="https://enterprise.arcgis.com/en/server/10.6/administer/windows/anticipating-and-accommodating-users.htm#GUID-A28F8297-0058-4BFF-9C50-8C50CD000B44" target="_blank" rel="noopener"&gt;Anticipating and accommodating users&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since we were using the ArcGIS Server version 10.6, we could not use the shared instance pool.&lt;/P&gt;&lt;P&gt;To solve the issue, we determined the critical services by analyzing their demand from Server statistics. We set the &lt;SPAN&gt;&lt;STRONG&gt;Minimum number of instances per machine&lt;/STRONG&gt; to 0 for unimportant services. After configuring all the services,&amp;nbsp;&lt;/SPAN&gt;our ArcSOC count looked something like this,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="ArcSOC Count.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/28405i6B7F35A520D690C5/image-size/large?v=v2&amp;amp;px=999" role="button" title="ArcSOC Count.png" alt="ArcSOC Count.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you to everyone who helped with the process, including&amp;nbsp;&lt;/SPAN&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/56180"&gt;@DebendraBiswas&lt;/a&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 06:49:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-load-image-layer-via-localhost-in/m-p/1120694#M75414</guid>
      <dc:creator>arahman_mdmajid</dc:creator>
      <dc:date>2021-11-29T06:49:50Z</dc:date>
    </item>
  </channel>
</rss>

