Related Topics |
---|
As clients make requests, many output files are generated. ArcIMS Tasker keeps track of these output files and deletes them on an interval you specify. Removing output files on a regular basis is important so that your machines do not run out of disk space. Output files are generated in the following places:
You can set the intervals for deleting files in two places:
During the ArcIMS post-install process, a file named Tasks.xml is created for you with the most common directories and file types that may not deleted by Tasker when you start a service. You can modify the file as necessary to add or remove directories and file types.
The following is a sample Tasks.xml file included with the ArcIMS install. On UNIX and Linux, if ArcMap Server is not installed, the temp directories are commented out.
<?xml version="1.0" encoding="UTF-8"?> <TASKS> <CLEANUP dir="<ArcIMS install location>/ArcIMS/server/tmp" exts="mxd,pmf" interval="1440" /> <CLEANUP dir="<localuser directory>/Temp" exts="mdb,ldb,aux,sdr,tmp,jpg,bmp,png" interval="10" /> <CLEANUP dir="<localuser directory>/Temp" interval="60" /> </TASKS> |
Where
dir is the path name of the directory where you want files deleted.
exts is a comma separated list of extensions you want deleted.
interval is the number of minutes Tasker waits before cleaning the directory.
To specify that you want Tasker to clean up all subdirectories in a directory instead of only specific file types within that directory, leave out the exts attribute and its values. The following sample cleans up all subdirectories in the user temp directory:
<CLEANUP dir="c:/temp" interval="60" /> |
In some cases, you may not want files of a particular extension to be deleted on the schedule you set when starting a service. For example, you may want zip files to be available longer for retrieval than image output. If this is the case, you can write these files to a different directory and add a line to Tasks.xml for deleting these files on a new schedule.
Windows: <ArcGIS Installation Directory>\ArcIMS\AppServer\Tasker
UNIX and Linux: $AIMSHOME/Middleware/Tasker
Windows: <ArcGIS Installation Directory>\ArcIMS/ArcIMS/AppServer/Tasker/Tasks.xml
UNIX and Linux: /<ArcGIS Installation Directory>\ArcIMS/ArcIMS/Middleware/Tasker/Tasks.xml
On Windows platforms, be sure you use forward slashes, not backward slashes.
ArcMap Server generates a number of temporary files. If you install ArcMap Server after installing ArcIMS or you have multiple machines running ArcMap Server, you need to update Tasks.xml to remove these temporary files.
Windows: <ArcGIS Installation Directory>\ArcIMS\ Server\tmp
UNIX and Linux: $AIMSHOME/tmp
Windows: <ArcGIS Installation Directory>\ArcIMS\AppServer\Tasker
UNIX and Linux: $AIMSHOME/Middleware/Tasker
Windows: Replace FOLDER with C:/DOCUME~1/<username>/LOCALS~1/Temp
UNIX and Linux: Replace FOLDER with $AIMSHOME/tmp
<CLEANUP dir="<Location of tmp on machine 1>" exts="mxd,pmf" interval="1440" /> <CLEANUP dir="<Location of tmp on machine 2>" exts="mxd,pmf" interval="1440" /> |
Windows: <ArcGIS Installation Directory>\ArcIMS\AppServer\Tasker
UNIX and Linux: $AIMSHOME/Middleware/Tasker
<CLEANUP dir="<mydirectory>" exts="bmp,tif" interval="60" /> |
On Windows, if you are adding directories from multiple machines, use a UNC path (for example - \\machine1\Server\mydirectory).
In the following example, Spatial Server log files are deleted once a week.
<CLEANUP dir="<Spatial Server log file directory>" exts="log" interval="10080" /> |
For more information about Spatial Server log file names and locations, see Log file locations and names.
<CLEANUP dir="<mydirectory>" interval="60" /> |
The following scenario removes zip files on a different schedule from other output from a service.
<?xml version="1.0" encoding="UTF-8"?> <ARCXML version="1.1"> <REQUEST> <GET_EXTRACT> <PROPERTIES> <ENVELOPE minx="-130" miny="30" maxx="-90" maxy="60" /> <OUTPUT path="c:\arcims\zipoutput" url="http://mymachine.domain.com/zipoutput" /> </PROPERTIES> </GET_EXTRACT> </REQUEST> </ARCXML> |
<CLEANUP dir="c:\arcims\zipoutput" exts="zip" interval="60" /> |