<?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: Fastest tile creation - CPU usage near 100% during the tile creation in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/fastest-tile-creation-cpu-usage-near-100-during/m-p/761044#M24816</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We figured out the one reason: area of interest was the feature class with number of polygons more than 1.&lt;/P&gt;&lt;P&gt;After we have dissolved the feature class it seems better: now, 20-30% of CPU usage (still not 90-100 &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anthony, thank you for your response. We use 10.5, and 16&lt;SPAN style="background-color: #ffffff;"&gt; ArcSOCP processes for 16 core CPU are present.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Another indication of the "proper" use of the tool is number of temporary &amp;nbsp;*.lock" files in the cache folder.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Jun 2017 03:53:09 GMT</pubDate>
    <dc:creator>MarkMindlin</dc:creator>
    <dc:date>2017-06-22T03:53:09Z</dc:date>
    <item>
      <title>Fastest tile creation - CPU usage near 100% during the tile creation</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/fastest-tile-creation-cpu-usage-near-100-during/m-p/761042#M24814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use the tool "Manage Tile Cache" in ArcMap 10.5, for ArcGIS Server 10.3.&lt;/P&gt;&lt;P&gt;Parameter&amp;nbsp;"&lt;SPAN style="color: #4d4d4d; background-color: #ffffff;"&gt;area_of_interest" is the feature class created by CacheWorx "Coverage To Feature" Level 19&lt;IMG __jive_id="357840" class="image-1 jive-image" height="165" src="https://community.esri.com/legacyfs/online/357840_pastedImage_1.jpg" width="180" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The help says: "&lt;SPAN style="color: #333333; background-color: #ffffff; font-size: 14px;"&gt;For the fastest tile creation, your CPU should be working near 100% during the tile creation"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Having 16 cores CPU, and using ParallelProcessingFactor 100% or 16&amp;nbsp;&lt;/P&gt;&lt;P&gt;the CPU usage is very low - between 3 to 8 percents&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="357841" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/357841_pastedImage_2.jpg" style="width: 620px; height: 275px;" /&gt;&lt;/P&gt;&lt;P&gt;Any help will be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 06:10:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/fastest-tile-creation-cpu-usage-near-100-during/m-p/761042#M24814</guid>
      <dc:creator>MarkMindlin</dc:creator>
      <dc:date>2017-06-20T06:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Fastest tile creation - CPU usage near 100% during the tile creation</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/fastest-tile-creation-cpu-usage-near-100-during/m-p/761043#M24815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just upgraded from 10.4.1 to 10.5 and it appears the Manage Tile Cache geoprocessing tool is not respecting the multithreading like it is supposed to. &amp;nbsp;In 10.4.1 if you had parallel processing set to 100% then the amount of ArcSOCP should match the number of cores. &amp;nbsp;&lt;/P&gt;&lt;P&gt;Since upgrading to 10.5 I do not see any ArcSOCP processes at all and the caching appears to be much slower.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2017 18:11:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/fastest-tile-creation-cpu-usage-near-100-during/m-p/761043#M24815</guid>
      <dc:creator>AnthonyMikelson</dc:creator>
      <dc:date>2017-06-21T18:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Fastest tile creation - CPU usage near 100% during the tile creation</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/fastest-tile-creation-cpu-usage-near-100-during/m-p/761044#M24816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We figured out the one reason: area of interest was the feature class with number of polygons more than 1.&lt;/P&gt;&lt;P&gt;After we have dissolved the feature class it seems better: now, 20-30% of CPU usage (still not 90-100 &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anthony, thank you for your response. We use 10.5, and 16&lt;SPAN style="background-color: #ffffff;"&gt; ArcSOCP processes for 16 core CPU are present.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Another indication of the "proper" use of the tool is number of temporary &amp;nbsp;*.lock" files in the cache folder.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 03:53:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/fastest-tile-creation-cpu-usage-near-100-during/m-p/761044#M24816</guid>
      <dc:creator>MarkMindlin</dc:creator>
      <dc:date>2017-06-22T03:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: Fastest tile creation - CPU usage near 100% during the tile creation</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/fastest-tile-creation-cpu-usage-near-100-during/m-p/761045#M24817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After further research I had to eventually uninstall the Desktop Background Geoprocessing. &amp;nbsp;Not sure why yet, but it is working now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 12:23:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/fastest-tile-creation-cpu-usage-near-100-during/m-p/761045#M24817</guid>
      <dc:creator>AnthonyMikelson</dc:creator>
      <dc:date>2017-06-22T12:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Fastest tile creation - CPU usage near 100% during the tile creation</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/fastest-tile-creation-cpu-usage-near-100-during/m-p/761046#M24818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We also uninstalled&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;Desktop Background Geoprocessing.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 23:48:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/fastest-tile-creation-cpu-usage-near-100-during/m-p/761046#M24818</guid>
      <dc:creator>MarkMindlin</dc:creator>
      <dc:date>2017-06-22T23:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Fastest tile creation - CPU usage near 100% during the tile creation</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/fastest-tile-creation-cpu-usage-near-100-during/m-p/761047#M24819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;In order to find a workaround I tried to use a script with multiprocessing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;Unfortunately, it has an error at the run time. Please help to make it working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;The script&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;#run “Manage Tile Cache” tool in parallel processing&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;import arcpy&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;import multiprocessing&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;import os&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;import glob&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;import sys&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;import traceback&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;from multiprocessing import Process, Queue, Pool, \&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu_count, current_process, Manager&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;arcpy.env.overwriteOutput = True&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;arcpy.env.scratchWorkspace = "in_memory"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;AAA_Imagery = "D:/gisdata/imagery/public_AAA_Imagery/AAA_Imagery"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;Manage_Mode = "RECREATE_ALL_TILES"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;Scales__Pixel_Size___Estimated_Disk_Space_ = "564.248588"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;Best_WebM = "D:/gisdata/imagery/BestMosaic_2017test.gdb/Best_WebM"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;Level_20_coverage = "D:/gisdata/imagery/Levels_coverage.gdb/Level_20_coverage"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;def execute_task(bundleAOI):&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; try:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = arcpy.ManageTileCache_management(AAA_Imagery, Manage_Mode, "", Best_WebM, "ARCGISONLINE_SCHEME", "", Scales__Pixel_Size___Estimated_Disk_Space_, bundleAOI, "", "591657527.591555", "282.124294")&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print(arcpy.GetMessages())&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;print "result: " + result&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; except Exception, e:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e.traceback = traceback.format_exc()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;if __name__ == '__main__':&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #get individual bundles, add it to a dictonary&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; bundles = {}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; count = 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for bundle in arcpy.da.SearchCursor(Level_20_coverage,["*"]):&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bundles[count] = bundle&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count += 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # create a process pool and pass dictonary of extent to execute task&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pool = Pool(processes=cpu_count())&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pool.map(execute_task, bundles.items())&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pool.close()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 36.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pool.join()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;The error (see the image)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/358326_error_at_gp_multiproc.JPG" style="width: 620px; height: 173px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 06:51:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/fastest-tile-creation-cpu-usage-near-100-during/m-p/761047#M24819</guid>
      <dc:creator>MarkMindlin</dc:creator>
      <dc:date>2017-06-23T06:51:31Z</dc:date>
    </item>
  </channel>
</rss>

