About server directories

A server directory represents a physical directory on the network that is specially designated for an ArcGIS Server site to store and write certain kinds of information. There are four types of server directories: cache, jobs, output, and system.

Permissions and visibility of server directories

When you create an ArcGIS Server site in Manager, the server directories are created on your GIS server and the ArcGIS Server account is granted read and write access to these directories. By default, the server directories are installed at <ArcGIS Server installation drive>\arcgisserver\directories. You can manage your server directories in Manager by navigating to Site > GIS Server > Directories.

When configuring a multiple-machine site

If you are configuring a multiple-machine site, you must configure the server directories to use UNC paths before you add GIS servers to your site. See the topic Configuring a multiple-machine deployment for more information about setting share and file permissions on your server directories.

When expanding from a one-machine site to a multiple-machine site

If you are expanding your site from one GIS server to multiple GIS servers, you'll need to use your operating system tools to share the folders containing your directories and ensure that the ArcGIS Server account has permissions to read and write to these shared folders. For full instructions, see the topic Expanding from one GIS server to multiple GIS servers.

Server directory cleaning

ArcGIS Server periodically deletes (or "cleans") old unneeded files from the jobs and output directories to prevent them from taking more disk space than necessary. The cache and system directories are not cleaned because their contents are expected to be always available.

How the server cleans directories

When ArcGIS Server attempts to clean a file in a server directory, it checks to see if the time elapsed since the file was last modified is greater than the specified maximum file age. If the file meets this criteria, it is removed and the server moves on to the next file in the directory. If the file fails to meet this criteria, it is retained in the directory.

By default, the server jobs and output directories are specified to be cleaned using the following criteria:

Directory

Cleanup mode

Maximum file age

jobs

Time since last modified

360 minutes (6 hours)

output

Time since last modified

10 minutes

For example, if a file in the output directory has not been modified within ten minutes of being created, the cleanup mechanism will delete the file since it has surpassed the maximum allowed file age. You can adjust the cleanup mode and maximum file age to match the specific needs of your site.

LegacyLegacy:

In previous versions of ArcGIS Server, you could configure the server to delete files at regular intervals based on either the age of the file or when the file was last accessed by a client. At ArcGIS 10.1 for Server, the server only deletes files if they have not been modified within the specified maximum file age.

In addition to the cleanup mode and maximum file age, the jobs and output directories have their own set of cleaning rules. For example:

  • When a jobs directory is cleaned, ArcGIS Server only deletes the job if it has completed, been canceled, or failed.
  • When an output directory is cleaned, ArcGIS Server only deletes files and folders if the file or folder name begins with _ags.

Adjusting or disabling directory cleaning

You can adjust or disable server directory cleaning for the jobs and output directories using ArcGIS Server Manager or ArcGIS for Desktop. For full instructions, see the following:

Accessing server directories through a virtual path, or URL

ArcGIS 10.1 for Server allows you to access items from your server directories using virtual paths, or URLs.

LegacyLegacy:

If you wanted to expose a server directory through a URL in previous releases of ArcGIS Server, you had to create a virtual directory on your web server and associate that virtual directory with your server directory. This workflow is no longer necessary. Once you create a server directory with ArcGIS 10.1 for Server, it is automatically exposed through a URL.

The URL of the directory takes the form http://<server name>:6080/arcgis/rest/directories/<directory name>.

For example, if you have an output image at the location c:\arcgisserver\directories\arcgisoutput\_ags_map00c6dac961024efeb14067f990a38d5f.png, it is available through the following URL:

http://localhost:6080/arcgis/rest/directories/arcgisoutput/_ags_map00c6dac961024efeb14067f990a38d5f.png

You can click the Directories tab in Manager for more information about the URLs of each of your server directories.

TipTip:

Using the ArcGIS Web Adaptor, you can tailor the above URL to remove the need for port 6080 or arcgis.

Related Topics

12/18/2014