User Tools

Site Tools


arcgisserver

Differences

This shows you the differences between two versions of the page.


Previous revision
arcgisserver [2024/03/18 22:56] (current) – [Cache Tiles job from Linux] Jan Forman
Line 1: Line 1:
 +[[https://koopjs.github.io]]
  
 +====== Cache Tiles job from Linux ======
 +<code>
 +#!/bin/sh
 +USER=
 +PASSWORD=
 +HOST=http://IP:6080/arcgis
 +LAYER=layer
 +TOKEN=`curl -X POST -d username=$USER -d password=$PASSWORD $HOST/tokens/generateToken`
 +LEVELS="2311162.217155;1155581.108577;577790.554289;288895.277144;144447.638572;72223.819286;36111.909643;18055.954822;9027.977411;4513.988705;2256.994353"
 +EXTENT="1380000%206260000%201540000%206460000"
 +
 +curl "$HOST/rest/services/System/CachingControllers/GPServer/Manage%20Map%20Cache%20Tiles/submitJob?service_url=$LAYER:MapServer&constraining_extent=$EXTENT&levels=$LEVELS&thread_count=2&update_mode=RECREATE_ALL_TILES&f=json&token=$TOKEN"
 +</code>
 +
 +Check job status
 +<code>
 +http://IP:6080/arcgis/rest/services/System/CachingControllers/GPServer/Manage%20Map%20Cache%20Status/jobs/JOBID
 +</code>
 +====== ArcGIS Server Enterprise for Linux 10.x ======
 +Machine config\\
 +config-store/machines/*.json\\
 +\\
 +rm -rf /opt/arcgis/server/temp/*
 +
 +====== Directory structure ======
 +Important places\\
 +
 +^Path                                                      ^ Description                   ^
 +| **/server/bin**                                          | main binaries                 |
 +| **/server/bin/wine**                                     | Wine 1.4                      |
 +| **/server/framework/etc/service.log**                    | log                           |
 +| **/server/framework/etc/service_error.log**              | error log                     |
 +| **/server/framework/etc/scripts**                        | may contain some error dumps  |
 +| **/server/framework/runtime/.wine/drive_c/windows/temp** | temporary files               |
 +| **/server/framework/runtime/jre**                        | Java Runtime                  |
 +| **/server/framework/runtime/tomcat**                     | Apache Tomcat                 |
 +| **/server/geronimo**                                     | Apache Geronimo               |
 +| **/server/usr/logs**                                     | Machine logs                  |
 +| **/server/usr/config-store**                             | JSON configs                  |
 +
 +**/server/usr/directories** - user directories if not placed somewhere else\\
 +^ Path                                                                                ^ Description           ^
 +|**/server/usr/directories/arcgiscache/service**                                      | stored tiles          |
 +|**/server/usr/directories/arcgissystem/arcgisinput/service.MapServer**               | service folder        |
 +|**/server/usr/directories/arcgissystem/arcgisinput/service.MapServer/extracted/cd**  | SHP (data)            |
 +|**/server/usr/directories/arcgissystem/arcgisinput/service.MapServer/extracted/v101**| GDB (data) + MSD + MXD|
 +Set correct permissions when you are copy files from other sources.
 +
 +====== Site Administration ======
 +<code>http://somemachine:6080/arcgis/manager</code>
 +default login "siteadmin"
 +
 +====== Server Administration ======
 +<code>http://somemachine:6080/arcgis/admin</code>
 +default login "siteadmin"
 +
 +====== REST Catalog ======
 +<code>http://somemachine:6080/arcgis/rest/services</code>
 +
 +====== Set heap under ArcGIS Server for Linux ======
 +
 +<code>
 +Web server maximum heap size (in MB): -1 (Default APACHE TOMCAT HEAP SIZE)
 +App server maximum heap size (in MB): 256 (Default APACHE GERONIMO HEAP SIZE)
 +SOC maximum heap size (in MB): 64 (Default Server Object Container x number of threads)
 +</code>
 +/server/framework/etc/machine-config.xml
 +
 +Copy tiles from actual directory to another VPS
 +<code>
 +scp -r /opt/arcgis/server/usr/directories/arcgiscache/giscr/Layers/_alllayers/* 10.160.149.11:/var/lib/lxc/101/rootfs/home/basemap/tiles/
 +</code>
 +
 +
 +====== Change Permission for my REST Service ======
 +<code>
 +find . -type f -name '*' -exec chmod 644 {} \;
 +find . -type d -name '*' -exec chmod 755 {} \;
 +</code>
 +====== DB Connectivity ======
 +**Service properties -> Specify Health Check Settings -> Periodically check and repair data connections for idle instances**\\
 +If your router or firewall closing persistent DB connection you can configure repair here.\\
 +\\
 +Established connection (without data transfer in idle)\\
 +**Linux default: 5 days**\\
 +**Average router / firewall: 30 minutes**