Related Topics |
---|
You can enable verbose logging to help troubleshoot technical problems or test ArcIMS applications. Log files are available for the Application Server, Monitor, Tasker, Spatial Servers, and ArcSDE.
When you are developing ArcIMS, you should consider turning your log files on permanently. This requires making changes in property files. When you are troubleshooting a problem in a production environment, you can enable full verbose logging temporarily by dynamically starting and stopping full logging. On a production machine, you want to minimize the amount of time full logging is enabled since more logging affects performance.
The Application Server debug, Monitor, and Tasker log files are generated only when full verbose logging is enabled. These log files can be used together with the Spatial Server log files to isolate a problem.
The Spatial Server files are always available but will contain different information based on the level of logging. By default, only errors and warnings are logged. This is a good setting in a production environment. In a development environment, you should set the logging level to the highest level. The different levels are:
Log level | Description |
---|---|
0 | No message information. This level of messaging costs the least amount of processing resources. While this improves the performance of the Spatial Server, you won't be able to view or have a record of any messages. You can also use the alternate value of off in place of 0 for this value. |
1 | All error messages. You can also use the alternate value of error for this value. |
2 | All errors and warnings. You can also use the alternate value of warning for this value. This is the default setting. |
3 | All errors, warnings, and some informational messages related to processing times (INFO1 and STAT1). You can use the alternate value of minimal for this value. |
4 | All errors, warnings, informational, and status messages. This level of logging costs the most in terms of processing resources but provides the most information. You can use the alternate values of on for this value.
Informational messages are messages that provides facts about a request, such as the date and time of a request or status of a logging level, for reference purposes. This type of message does not indicate an error of any kind. ArcIMS uses several types of informational messages. The most important informational messages are INFO1, which provide the service name and beginning and ending timestamps. The other types are INFO2 and INFO3, which provide additional information about requests and responses. Status messages give information about processing times. STAT1 messages are for the total request time. All other processing times are listed at STAT2 messages. |
More details about the Spatial Server log files are available in Interpreting Spatial Server log files. For more details on specific common error and warning messages, see Error and warning messages overview. For information on custom logging levels, see aimsserver.cfg reference for logging settings.
The following set of steps enables logging and generates a new set of log files. Log files are one of the best tools for troubleshooting issues in a problematic ArcIMS configuration.
Windows: <ArcGIS Installation Directory>\ArcIMS\AppServer
UNIX and Linux: $AIMSHOME/Middleware/Application_Server
debug=True |
logToFile=True |
LogSize=5 |
Windows: <ArcGIS Installation Directory>\ArcIMS\Server\AppServer\Tasker
UNIX and Linux: $AIMSHOME/Middleware/Tasker
debug=True logToFile=True |
Windows: <ArcGIS Installation Directory>\ArcIMS\Server\Monitor
UNIX and Linux: $AIMSHOME/Monitor
debug=True logToFile=True |
Windows: <ArcGIS installation>\ArcIMS\server\etc
UNIX and Linux: $AIMSHOME/etc
Windows absolute path name | logpath="C:\mydirectory" |
For a Windows UNC path name | logpath="\\mymachine\mydirectory" |
For a UNIX or Linux absolute path name | logpath="/net/mymachine/mymachine1" |
The logpath value does not affect the location of the *stdout*.log and *stderr*.log files; they are always saved in the default Spatial Server log directory on each machine.
<AIMSSERVER debug="false" logpath="\\mymachine\logfiles" logtype="log" logmaxsize="5000" logmaxlines="" logmaxfiles="" logsavefiles="true" logmsglevel="4" > |
set SDEVERBOSE=1 |
Windows: <ArcGIS Installation Directory>\ArcIMS\AppServer
UNIX and Linux: $AIMSHOME/Middleware/Application_Server
Renaming the 'SEZ' files to '.old' will remove all the currently available services from the Application Server. Original services can be recovered by re-renaming these files back to '.sez'.
For log file locations, see Log file locations and names.