User Tools

Site Tools


arcgisserver

https://koopjs.github.io

Cache Tiles job from Linux

#!/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"

Check job status

http://IP:6080/arcgis/rest/services/System/CachingControllers/GPServer/Manage%20Map%20Cache%20Status/jobs/JOBID

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

http://somemachine:6080/arcgis/manager

default login “siteadmin”

Server Administration

http://somemachine:6080/arcgis/admin

default login “siteadmin”

REST Catalog

http://somemachine:6080/arcgis/rest/services

Set heap under ArcGIS Server for Linux

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)

/server/framework/etc/machine-config.xml

Copy tiles from actual directory to another VPS

scp -r /opt/arcgis/server/usr/directories/arcgiscache/giscr/Layers/_alllayers/* 10.160.149.11:/var/lib/lxc/101/rootfs/home/basemap/tiles/

Change Permission for my REST Service

find . -type f -name '*' -exec chmod 644 {} \;
find . -type d -name '*' -exec chmod 755 {} \;

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

arcgisserver.txt · Last modified: 2024/03/18 22:56 by Jan Forman