arcgis server tips and tricks, mac-urisa2010

Post on 13-Nov-2014

3.962 Views

Category:

Technology

2 Downloads

Preview:

Click to see full reader

DESCRIPTION

 

TRANSCRIPT

Tools and Techniques for Managing ArcGIS Server in the Enterprise

1.Map service usage reports

2.Update Map Caches

3.Keep map services fast

4.Restart ArcGIS Server

5.Check ArcSDE and Oracle

6.Feature Class Use & Schema Locks

7.Monitoring ArcGIS Server

2

3

Application Server

4

1. Map Service Usage Reports

5

1. Map Service Usage Reports

StatisticsUtilityStatisticsUtility

App Server

HTML

1st

2nd

7

1. Map Service Usage Reports

gisServerConnection.Connect(agsserver);

IServerObjectAdmin serverObjectAdmin = gisServerConnection.ServerObjectAdmin;

//Get the stats IServerStatistics serverStats = serverObjectAdmin as IServerStatistics; IEnumServerObjectConfiguration enumSOC = serverObjectAdmin.GetConfigurations(); IServerObjectConfiguration SOC = enumSOC.Next(); //get the time range and report it. IStatisticsResults statsRes = serverStats.GetAllStatisticsForTimeInterval(esriServerStatEvent.esriSSEContextReleased, esriServerTimePeriod.esriSTPNone, 0, 1, SOC.Name, SOC.TypeName, string.Empty); IServerTimeRange serverTR = statsRes as IServerTimeRange;

6

2. Update Map Caches

Geoprocessing Tools“Show Edits Since Reconcile”“Manage Map Server Cache Tiles”

8

2. Update Map Caches

Script Logic:- Determine edits between 2 versions.- Make a FC with the extent of the changed features.- Buffer the features.- Update the map cache using the extent.Optional:::- Reconcile and post changes in child version.- Copy new cache files to production server.

9

3. Keep map services fast

1 Dim webApp 2 Set webApp= CreateObject("InternetExplorer.Application") 3 4 webApp.Visible = true 5 6 Dim counter 7 counter = 0 8 9 dim services(2)10 services(0)="CCNET/CCNET”11 Services(1)=“portfolio_anon”1213 Do while counter < 114 For Each x in services 15 webApp.Navigate "http://myserver.com/arcgis/rest/services/" & x & "/MapServer”16 wscript.sleep(6000)17 Next18 counter = counter + 119 Loop20 webApp.quit21 Set webApp = nothing

Zzzzzz

10

4. Restart ArcGIS Server

sc stop ArcServerObjectManagersleep 10

sc stop ArcSOCMonitorsleep 180

sc start ArcSOCMonitorsleep 10

sc start ArcServerObjectManager

11

5. Check ArcSDE and Oracle

!

12

5. Check ArcSDE and Oracle

13

5. Check ArcSDE and Oracle

14

6. Feature Class Use & Schema Locks

15

6. Feature Class Use & Schema Locks

CREATE OR REPLACE FORCE VIEW "SDE".”LAYERS_IN_USE_VIEW" ("TABLE_OWNER_ID", "TABLE_NAME", "TABLE_REG_ID", "CLIENT_MACHINE", "CLIENT_DATABASE_ID", "START_TIME", "SDE_ID", "SERVER_ID") AS SELECT TABLE_REGISTRY.OWNER TABLE_OWNER_ID, TABLE_REGISTRY.TABLE_NAME, TABLE_LOCKS.REGISTRATION_ID TABLE_REG_ID, PROCESS_INFORMATION.NODENAME CLIENT_MACHINE, PROCESS_INFORMATION.OWNER CLIENT_DATABASE_ID, PROCESS_INFORMATION.START_TIME, PROCESS_INFORMATION.SDE_ID, PROCESS_INFORMATION.SERVER_IDFROM TABLE_REGISTRY INNER JOIN (PROCESS_INFORMATION INNER JOIN TABLE_LOCKS ON PROCESS_INFORMATION.SDE_ID = TABLE_LOCKS.SDE_ID) ON TABLE_REGISTRY.REGISTRATION_ID = TABLE_LOCKS.REGISTRATION_ID;

16

7. Monitoring ArcGIS Server

3rd Party Product - www.geoxmf.com

17

7. Monitoring ArcGIS Server

18

Thank you.

Brian Embleybembley@comcast.net

top related