Added scale to image service cache, but tile generation refuses to complete

2507
9
08-15-2016 10:39 AM
deleted-user-zpcJw1u0IXiO
Occasional Contributor

I have an image service I've successfully cached previously. It had four empty scales 1:50, 1:100, 1:250, and 1:500 I created in order that the Geocortex viewer would permit zooming closer than the cached levels.

I have found need to populate the cache at 1:500, and was able to get perhaps a third of the service extent to do so. The table below shows the Cache Status where it is stuck, despite that Level 17 is currently underway for the dozenth or so attempt. 

LevelScaleSizeExpected TilesCompleted TilesPercentIn Progress
01,000,0000.18 MB66100
1500,0000.61 MB1818100
2250,0002 MB5555100
3125,0004.36 MB21018085.71
4100,0006.76 MB31227588.14
564,0009.87 MB76062482.11
650,00013.92 MB1,20096080
732,00027.75 MB2,8862,35681.64
825,00039.45 MB4,6533,74480.46
916,00065.76 MB11,2429,15081.39
1010,000162.53 MB28,40523,18381.62
118,000228.27 MB44,35236,05881.3
125,000471.78 MB113,39091,86881.02
134,000742.54 MB177,408143,39580.83
142,5001.91 GB453,560366,52080.81
152,0002.79 GB708,400572,39080.8
161,00011.01 GB2,832,4502,285,25880.68
175004.47 GB11,327,5002,583,06122.8
182500 MB45,310,00000
191000 MB283,126,75200
20500 MB1,132,434,76500

The trouble is the tile count never changes, despite my running Manage Map Server Cache Tiles with each attempt using an Update Extent shapefile covering a progressively smaller fraction of the area needed. So after three hours on an extent of just 30 sq. miles, the job details URL reports 0% completion on each line, with a different Estimated Time Remaining that grows larger and larger before dropping back to begin growing larger again.

The Logs in AGS Manager report what I suspect may be the reason for no tile creation:

SEVEREAug 15, 2016, 1:21:23 PMError exporting image Wait time of the request to the service 'public/swoop2015_mosaic.ImageServer' has expired.Rest
SEVEREAug 15, 2016, 1:21:23 PMUnable to process request. No instances for 'public/swoop2015_mosaic.ImageServer' were available for 60.006 seconds. Wait timeout exceeded.public/swoop2015_mosaic.ImageServer
SEVEREAug 15, 2016, 1:20:41 PMError exporting image Error handling service request :Processing request took longer than the usage timeout for service 'public/swoop2015_mosaic.ImageServer'.Rest
SEVEREAug 15, 2016, 1:20:38 PMProcessing request took longer than the usage timeout for service 'public/swoop2015_mosaic.ImageServer'. Server request timed out. Check that the usage timeout is appropriately configured for such requests.public/swoop2015_mosaic.ImageServer

I don't know what to try next. I have already restarted the image service with no change in behaviour.

Short of contacting Esri tech support, what should I try to correct this issue?

Thanks,

Justin

0 Kudos
9 Replies
JenniferMcCall4
Occasional Contributor III

Could it be that another process is holding on to the instances need to cache this?  Have you tried re-starting the ArcGIS Server service in windows?

What does your CPU sit at over the 3 hours?

0 Kudos
deleted-user-zpcJw1u0IXiO
Occasional Contributor

Thank you Jennifer. I didn't notice the CPU usage before cancelling the job shortly after my post. How can I determine what other process might be holding on to the instance, which I assume you mean to be the image service? Perhaps it might be that I publish the same service dynamically to handle the larger, non-cached scales. Should I stop that service to see if that affects things?

To restart ArcGIS Server service in windows, do you mean in Manager, or in Windows Services?

0 Kudos
deleted-user-zpcJw1u0IXiO
Occasional Contributor

I've launched the MMSCT again, after stopping the dynamic image service, and CPU usage ranges between 20% and 65%, but the server has active map users. I've still not restarted any services.

0 Kudos
JenniferMcCall4
Occasional Contributor III

Is this percentage where you expect the CPU to sit while caching, or while there is no caching and active users?

0 Kudos
JenniferMcCall4
Occasional Contributor III

Hi Justin,

I was referring to the ArcGIS Server service within Windows Services.  Stopping and then starting it should remove any potential locks from other services or even from processes previously run on this image service.  After starting the windows service again, wait a minute or two until ArcGIS Server and all arcgis services (ex; the image service) are back up and running.  Then try to cache just level 17 again and see if it makes a difference.

When you publish the service, are you checking the box to manually create the cache after the service is published?

Another source of information you could check is the Status.gdb within the cache folder.  It will only be visible through Windows Explorer, so copy this gdb to another location (ex; your Desktop) and then you can open the GDB and feature classes within ArcMap.  This may provide more information on what might be happening with your service.  I would recommend copying the GDB after you have tried to re-cache level 17 so any information about the job will be populated in the feature classes.

0 Kudos
deleted-user-zpcJw1u0IXiO
Occasional Contributor

okay thank you. I'll try restarting as you described. I realized just moments ago the mistake of turning off the dynamic image service (as I said I did), because the cached service needs the dynamic one as its source. And AGS logs screamed at me for the source service not being found. Silly me.

I looked at status.gdb last week, and that's how I knew which areas remained uncached, and used that to create polygons to use as the small update extents.

0 Kudos
deleted-user-zpcJw1u0IXiO
Occasional Contributor

yes, the service was already set for manual cache creation. 

I did restart the Windows ArcGIS Server service, but neglected to cancel caching before doing so. I clicked Cancel Job in the Job Details page, but after 10 minutes, it still says esriJobCancelling, so I don't know what more to do to make it actually stop so that I may restart it

0 Kudos
JenniferMcCall4
Occasional Contributor III

Stopping the ArcGIS Server service should kill the job, not leave it cancelling.  How long did you wait between stopping it and starting it up again.  It's beneficial to wait at least 30 seconds.

0 Kudos
deleted-user-zpcJw1u0IXiO
Occasional Contributor

I had left it only a second or two before starting it again. So I've stopped it once more, this time waiting more than 30 seconds, but with all services back up, the job still reports as being in progress (in Manager Cache Status).

0 Kudos